jupyter-book watch command
See original GitHub issueDescription / Summary
It would be nice if jupyter books automatically rebuilt upon changing a file, and fresh files were served over a development server.
Value / benefit
You need to keep several windows open to develop a jupyterbook - vscode, a terminal, a browser window, maybe the inspector. On a laptop, it’s a lot of windows to keep around. It would be nice not to have to look at one of those windows. It would be nice to always be one Ctrl+R away from seeing the latest build of the docs.
Implementation details
The sphinx book theme has support for live building using the tox -e docs-live command. I presume this would be substantially similar to this.
Tasks to complete
No response
Issue Analytics
- State:
- Created 2 years ago
- Comments:6 (3 by maintainers)
Top Results From Across the Web
Command-line interface reference - Jupyter Book
Jupyter Book comes with a command-line interface that makes it easy to build your books and run a few common functions. This page...
Read more >Watch command in Jupyter notebook - Stack Overflow
This is the only way I was able to do, to keep printing the GPU info. import time from IPython.display import clear_output while...
Read more >IPython and Shell Commands | Python Data Science Handbook
The magic happens with the exclamation point: anything appearing after ! on a line will be executed not by the Python kernel, but...
Read more >Running the Notebook - Jupyter Documentation
Start the notebook server from the command line: jupyter notebook · You should see the notebook open in your browser.
Read more >Creating an open-source book with Jupyter Book and Jupytext
0:00 · New! Watch ads now so you can enjoy fewer interruptions. Got it ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

Heya, a couple of things to note here:
jupyter-book tocworks (https://github.com/executablebooks/sphinx-external-toc/blob/ec4a43904dde7e24b3d08bd2c717c696ef20aff9/setup.cfg#L43-L44). By the same mechanism, an external package (like sphinx-autobuild) could inject ajupyter-book servecommand (see also https://github.com/executablebooks/sphinx-autobuild/issues/99)I saw that this is now feasible with sphinx-autobuild:
There’s a hint about this in the Sphinx section of the docs, but if it’s relevant I can draft a larger section on setting this up in the docs.