You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix: Install kernel spec into venv instead of user directory
Previously, ipykernel specs were installed with --user flag, placing them
in ~/Library/Jupyter/kernels/. This caused the Deepnote Jupyter server to
fall back to generic Python kernels because it couldn't discover the
venv-specific kernel spec.
This resulted in a mismatch where:
- Shell commands (!pip install) used the venv's Python (via PATH)
- But the kernel interpreter used system Python
- Leading to ModuleNotFoundError for packages installed in the venv
Now installing kernel specs with --prefix into the venv itself at
<venv>/share/jupyter/kernels/. Jupyter automatically discovers kernel
specs in this location when started with the venv's Python, ensuring
the correct interpreter is used.
Each .deepnote file maintains its own isolated venv with its own kernel
spec, preventing conflicts when multiple notebooks are open.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <[email protected]>
0 commit comments