Initialize nbproject for your notebook

To initialize nbproject, call nbproject.header(). For example, by adding from nbproject import header; header() to the first code cell:

Jupyter Lab

VS Code

Classic Notebook

Displays “Initializing.” and requires no further action.




  • You’ll have the best interactive experience in Jupyter Lab.

  • In other editors, you’ll need to manually hit save and reload the changed .ipynb file from disk (discard the editor content).

We recommend you use Jupyter Lab for a seamless interactive experience.