Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save StefRe/06eb636795827c66e42b454fd9f227ca to your computer and use it in GitHub Desktop.
Save StefRe/06eb636795827c66e42b454fd9f227ca to your computer and use it in GitHub Desktop.
VSCode: Export IPython notebook without prompts

It's not possible to configure the export function of vscode-jupyter by extra command line arguments passed to nbconvert. The feature request microsoft/vscode-jupyter#13918 was declined.

A workaround is to specify additional arguments in a configuration file jupyter_nbconvert_config.py in the .jupyter folder (its location can be shown by python.exe -m jupyter --path).

Contents of jupyter_nbconvert_config.py to hide prompts (equivalent to --no-prompt):

c = get_config()

c.TemplateExporter.exclude_input_prompt = True
c.TemplateExporter.exclude_output_prompt = True  
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment