-
-
Notifications
You must be signed in to change notification settings - Fork 14.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
jupyter: Broken, Schema not found #255923
Comments
same problem here |
Same with python311 ❯ nix-shell -p nix-info --run "nix-info -m"
- system: `"aarch64-darwin"`
- host os: `Darwin 22.5.0, macOS 13.4.1`
- multi-user?: `yes`
- sandbox: `no`
- version: `nix-env (Nix) 2.18.0`
- channels(root): `"nixpkgs"`
- nixpkgs: `/nix/var/nix/profiles/per-user/root/channels/nixpkgs`
❯ for chan in nixos nixpkgs; do
printf "%s: %s\n" $chan $(nix-instantiate --eval --expr "(import <$chan> {}).lib.version" 2>/dev/null);
done
nixos:
nixpkgs: "23.11pre527787.e12483116b3b"
❯ nix-env --query --installed | cat
age-1.1.1
bat-0.23.0
bazelisk-1.18.0
btop-1.2.13
direnv-2.32.3
fzf-0.42.0
go-1.20.8
htop-3.2.2
hugo-0.118.2
jq-1.6
oh-my-zsh-2023-06-26
pure-prompt-1.22.0
python3-3.11.4
python3.11-ipython-8.11.0
python3.11-jupyter-contrib-core-0.4.2
python3.11-jupyter-core-5.2.0
python3.11-jupyterlab-4.0.3
python3.11-matplotlib-3.7.2
python3.11-notebook-7.0.2
python3.11-numpy-1.25.1
python3.11-pandas-2.0.3
python3.11-pip-23.2.1
python3.11-scipy-1.11.2
python3.11-setuptools-68.0.0
restic-0.16.0
ripgrep-13.0.0
texlive-combined-full-2022-final
tree-2.1.1
wget-1.21.4
yq-3.2.3
zsh-autocomplete-23.05.24
zsh-fast-syntax-highlighting-1.55
zsh-fzf-tab-unstable-2023-06-11
zsh-you-should-use-1.7.3
zsh-z-unstable-2021-02-15 |
This is a known issue with notebook v7. As a workaround, you can run it as a python library with the following commands. nix-shell -p 'python3.withPackages (ps: with ps; [notebook])'
jupyter notebook |
It took some time to figure out how to reproduce the error. |
At least in the similar macOS |
If this is a known porblem, should we delay adopting version 7 until things work?
With this workaround, how do you install other kernels such as the wolfram or octave ones? For the wolfram one we currently have |
It looks up for kernels in .local/share/jupyter |
I mean in NixOS, e.g., using the kernel derivation used by |
fixed a bug reported in NixOS#255923 it occurred because the python runtime environment did not include the jupyter share, etc directories.
@defjaf |
fixed in #268078 |
fixed a bug reported in #255923 it occurred because the python runtime environment did not include the jupyter share, etc directories.
([at] natsukium) Could you please create a PR for the fix commit to nixos-23.11? The commit is missing from the backports that went from release-23.11 -> nixos-23.11, which makes jupyter broken in the nixos branch. |
The PR is labelled property so the bot kicks in and the PR is merged. Right now hydra may be building the next round of stuff to bump the branch You can track the progress here: https://nixpk.gs/pr-tracker.html?pr=269087 |
i didnt know it works like this, thanks for clearing that up!
good to know, thanks for the info! |
I tried running jupyter |
Please use |
For future reference, this can be circumvented in { pkgs ? import <nixpkgs> { } }:
let
pypkgs = pkgs.python312Packages;
in
pkgs.mkShell {
buildInputs = [
pypkgs.venvShellHook
pkgs.autoPatchelfHook
];
venvDir = "./.venv";
postVenvCreation = ''
pip install -U jupyter
autoPatchelf ./.venv
'';
postShellHook = ''
unset SOURCE_DATE_EPOCH
jupyter notebook
'';
} |
Describe the bug
Jupyter is broken
Steps To Reproduce
Steps to reproduce the behavior:
Expected behavior
It nicely starts, launches my browser and shows the folder list successfully
Screenshots
Additional context
Also tried and reproduced with
nix run
the latest stable and unstable.Also tried testing it after removing everythin from
~/.local/share/jupyter
(I am able to regenerate the jupyter kernel that matters to me)As a workaround I am using the jupyter from
release-22.11
branch.Notify maintainers
@natsukium
Metadata
Please run
nix-shell -p nix-info --run "nix-info -m"
and paste the result.The text was updated successfully, but these errors were encountered: