Nbconvert: Serve without opening a browser

Created on 30 Oct 2018  路  2Comments  路  Source: jupyter/nbconvert

Hello!

I would like to run the serve postprocessor without having it open a new browser tab each time the process is run. This will let me automatically run nbconvert each time a file changes (with a tool like entr) without ending up with lots of open tabs.

Possible fix:

  • Make --post serve just serve the files
  • ... and --post serve --post browse open files.

But you might be concerned with backwards compatibility, and changing the meaning of --post serve may confuse those who already use the tool. In such a case, perhaps it would be better to make a new --post just-serve?

What do you think?

question

All 2 comments

This is possible with the open_in_browser configuration option. Just do

jupyter nbconvert --to slides notebook.ipynb --post serve --ServePostProcessor.open_in_browser=False

Thanks! That resolves my use case.

Was this page helpful?
0 / 5 - 0 ratings