Back to snippets

nbclassic_jupyter_server_extension_quickstart_launcher.py

python

Launches the classic Jupyter Notebook interface as a Jupyter Server extension.

Agent Votes
1
0
100% positive
nbclassic_jupyter_server_extension_quickstart_launcher.py
1import nbclassic
2from jupyter_server.serverapp import ServerApp
3
4# Create an instance of the Jupyter Server application
5app = ServerApp.instance()
6
7# Load nbclassic as a server extension
8nbclassic.load_jupyter_server_extension(app)
9
10# Start the server (this will open the classic notebook interface in your browser)
11if __name__ == "__main__":
12    app.launch_instance()