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.

image

image

Important

  • 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.

Hint

If you instead want to bulk-initialize a whole folder with notebooks, use the CLI: Manage a collection of notebooks with the CLI.