NBI takes 80 seconds to import.
That's extremely slow.
I don't have Github copilot, Amazon BedRock or the like. Only Claude Code.
2026-06-08 08:04:54,498 - traitlets - utils.py - INFO - Extension package notebook_intelligence took 80.5213s to import
[I 2026-06-08 08:04:54.535 ServerApp] jupyter_lsp | extension was successfully linked.
[I 2026-06-08 08:04:54.536 ServerApp] jupyter_resource_usage | extension was successfully linked.
[I 2026-06-08 08:04:54.546 ServerApp] jupyter_server_terminals | extension was successfully linked.
[I 2026-06-08 08:04:54.554 ServerApp] jupyterlab | extension was successfully linked.
[I 2026-06-08 08:04:54.554 ServerApp] jupyterlab_git | extension was successfully linked.
[I 2026-06-08 08:04:54.554 ServerApp] jupyterlab_jupytext | extension was successfully linked.
[I 2026-06-08 08:04:54.554 ServerApp] jupyterlab_latex | extension was successfully linked.
[I 2026-06-08 08:04:54.554 ServerApp] jupyterlab_tabular_data_viewer_extension | extension was successfully linked.
[I 2026-06-08 08:04:54.555 ServerApp] jupyterlab_vscode_icons_extension | extension was successfully linked.
[I 2026-06-08 08:04:54.555 ServerApp] nbdime | extension was successfully linked.
[I 2026-06-08 08:04:54.561 ServerApp] notebook_intelligence | extension was successfully linked.
[I 2026-06-08 08:05:07.199 ServerApp] notebook_shim | extension was successfully linked.
[I 2026-06-08 08:05:07.835 ServerApp] notebook_shim | extension was successfully loaded.
[I 2026-06-08 08:05:07.838 ServerApp] jupyter_lsp | extension was successfully loaded.
[I 2026-06-08 08:05:07.840 ServerApp] jupyter_resource_usage | extension was successfully loaded.
[I 2026-06-08 08:05:07.841 ServerApp] jupyter_server_terminals | extension was successfully loaded.
[I 2026-06-08 08:05:07.868 LabApp] JupyterLab extension loaded from my-jupyterlab\.venv\Lib\site-packages\jupyterlab
[I 2026-06-08 08:05:07.868 LabApp] JupyterLab application directory is my-jupyterlab\.venv\share\jupyter\lab
[I 2026-06-08 08:05:07.869 LabApp] Extension Manager is 'pypi'.
[I 2026-06-08 08:05:07.898 ServerApp] jupyterlab | extension was successfully loaded.
[I 2026-06-08 08:05:08.014 ServerApp] jupyterlab_git | extension was successfully loaded.
[I 2026-06-08 08:05:08.015 ServerApp] [Jupytext Server Extension] Deriving an AsyncTextFileContentsManager from AsyncLargeFileManager
[I 2026-06-08 08:05:08.018 ServerApp] jupyterlab_jupytext | extension was successfully loaded.
[I 2026-06-08 08:05:08.156 ServerApp] jupyterlab_latex | extension was successfully loaded.
[I 2026-06-08 08:05:08.158 ServerApp] Registered jupyterlab_tabular_data_viewer_extension server extension
[I 2026-06-08 08:05:08.159 ServerApp] jupyterlab_tabular_data_viewer_extension | extension was successfully loaded.
[I 2026-06-08 08:05:08.180 ServerApp] jupyterlab_vscode_icons_extension server extension loaded
[I 2026-06-08 08:05:08.180 ServerApp] jupyterlab_vscode_icons_extension | extension was successfully loaded.
[I 2026-06-08 08:05:10.805 ServerApp] nbdime | extension was successfully loaded.
2026-06-08 08:05:12,829 - notebook_intelligence.llm_providers.ollama_llm_provider - ollama_llm_provider.py - WARNING - Failed to update supported Ollama models: Failed to connect to Ollama. Please check that Ollama is downloaded, running and accessible. https://ollama.com/download
2026-06-08 08:05:13,751 - notebook_intelligence.github_copilot - github_copilot.py - INFO - Using existing GitHub access token
2026-06-08 08:05:13,751 - notebook_intelligence.github_copilot - github_copilot.py - INFO - Refreshing GitHub token
[I 2026-06-08 08:05:13.777 ServerApp] Registered notebook_intelligence server extension
[I 2026-06-08 08:05:13.777 ServerApp] notebook_intelligence | extension was successfully loaded.
[I 2026-06-08 08:05:13.783 ServerApp] Serving notebooks from local directory: [ABRIDGED]
[I 2026-06-08 08:05:13.784 ServerApp] Jupyter Server 2.19.0 is running at:
[I 2026-06-08 08:05:13.784 ServerApp] http://localhost:8888/lab?token=[ABRIDGED]
[I 2026-06-08 08:05:13.784 ServerApp] http://127.0.0.1:8888/lab?token=[ABRIDGED]
[I 2026-06-08 08:05:13.784 ServerApp] Use Control-C to stop this server and shut down all kernels (twice to skip confirmation).
2026-06-08 08:05:13,798 - notebook_intelligence.claude - claude.py - WARNING - Failed to fetch Claude models: "Could not resolve authentication method. Expected one of api_key, auth_token, or credentials to be set. Or for one of the `X-Api-Key` or `Authorization` headers to be explicitly omitted"
[C 2026-06-08 08:05:13.877 ServerApp]
To access the server, open this file in a browser:
file:[ABRIDGED]/jupyter/runtime/jpserver-11700-open.html
Or copy and paste one of these URLs:
http://localhost:8888/lab?token=[ABRIDGED]
http://127.0.0.1:8888/lab?token=[ABRIDGED]
[I 2026-06-08 08:05:14.727 ServerApp] Skipped non-installed server(s): basedpyright, bash-language-server, dockerfile-language-server-nodejs, javascript-typescript-langserver, jedi-language-server, julia-language-server, pyrefly, pyright, python-language-server, sql-language-server, texlab, typescript-language-server, unified-language-server, vscode-css-languageserver-bin, vscode-html-languageserver-bin, vscode-json-languageserver-bin, yaml-language-server
2026-06-08 08:05:19,227 - notebook_intelligence.claude - claude.py - WARNING - Failed to fetch Claude models: "Could not resolve authentication method. Expected one of api_key, auth_token, or credentials to be set. Or for one of the `X-Api-Key` or `Authorization` headers to be explicitly omitted"
2026-06-08 08:05:19,345 - notebook_intelligence.extension - extension.py - INFO - Copilot WS upgrade accepted user='[ABRIDGED]' origin='http://localhost:[ABRIDGED]'
[W 2026-06-08 08:05:19.345 ServerApp] The websocket_ping_timeout (90000) cannot be longer than the websocket_ping_interval (30000).
Setting websocket_ping_timeout=30000
[I 2026-06-08 08:05:19.504 LabApp] Build is up to date
2026-06-08 08:05:27,877 - notebook_intelligence.claude - claude.py - WARNING - Claude agent did not reach a terminal connect state within 15.0s
2026-06-08 08:05:27,909 - notebook_intelligence.claude - claude.py - WARNING - Failed to fetch Claude models: "Could not resolve authentication method. Expected one of api_key, auth_token, or credentials to be set. Or for one of the `X-Api-Key` or `Authorization` headers to be explicitly omitted"
NBI takes 80 seconds to import.
That's extremely slow.
How can I speed it up?
I don't have Github copilot, Amazon BedRock or the like. Only Claude Code.
Here is the full log: