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
{name,availableKernels,extraArgs,}:
availableKernels.python{name="jupyterWith-testing";# must be uniquedisplayName="jupyterWith-testing";extraPackages=ps: [ps.numpyps.matplotlib];}
adding matplotlib to the example in the tutorial
leads to
$ nix runwarning: Using saved setting for 'extra-substituters = https://tweag-jupyter.cachix.org' from ~/.local/share/nix/trusted-settings.json.warning: Using saved setting for 'extra-trusted-public-keys = tweag-jupyter.cachix.org-1:UtNH4Zs6hVUFpFBTLaA4ejYavPo5EFFqgd7G7FxGW9g=' from ~/.local/share/nix/trusted-settings.json.warning: creating lock file '/home/collin/projects/jupyterWith-test/flake.lock'error: infinite recursion encountered at /nix/store/fr68dr66gmggn62jir7vp1bcnignwxp9-source/pkgs/stdenv/generic/make-derivation.nix:311:7: 310| depsBuildBuild = lib.elemAt (lib.elemAt dependencies 0) 0; 311| nativeBuildInputs = lib.elemAt (lib.elemAt dependencies 0) 1; | ^ 312| depsBuildTarget = lib.elemAt (lib.elemAt dependencies 0) 2;(use '--show-trace' to show detailed location information)
Expected Behavior
Jupyter notebook with matplotlib and numpy available.
This is probably related to nix-community/poetry2nix#750. I'm not sure how I feel about having poetry2nix under jupyterWith. In the past I've had many issues using poetry2nix. Trying to diagnose nix issues + poetry issues is a real headache with nix's non-descriptive error messages. The previous jupyterWith was convenient because I could just specify what packages I wanted without caring about what versions I wanted. I understand the documentation is still under construction so maybe there's a simple method to use jupyterWith like I did previously.
Relevant log output
No response
The text was updated successfully, but these errors were encountered:
We noticed there were some issues recently and figure it is because we had not updated the top level flake.lock file in a while. We are actively working on updating all the kernels so they work again. You can see the progress in this branch: https://github.com/tweag/jupyterWith/tree/update_flake_lock_action
I also had trouble getting matplotlib working on the new branch and using extraPackages. As you can see from this output.
$ nix run
error: attribute 'format' missing
at /nix/store/cc1lfn4pzkl0b4g13qr943ddv8w8lsrs-source/pkgs/development/tools/poetry2nix/poetry2nix/overrides/default.nix:1463:40:
1462| ++ lib.optionals (self.isPyPy) [ tk xorg.libX11 ];
1463| preConfigure = lib.optional (old.format != "wheel") preConfigure;| ^
1464| }
(use '--show-trace' to show detailed location information)
However, I was able to get it working using the other method mentioned in the TUTORIALS file.
This should be fixed with #415.
A new example kernel was added to the CI that pulls in numpy, scipy, and matplotlib via extraPackages. All seems to be working now.
Current Behavior
adding matplotlib to the example in the tutorial
leads to
Expected Behavior
Jupyter notebook with matplotlib and numpy available.
Steps To Reproduce
Add
ps.matplotlib
to extraPackagesVersion
Additional Context
This is probably related to nix-community/poetry2nix#750. I'm not sure how I feel about having poetry2nix under jupyterWith. In the past I've had many issues using poetry2nix. Trying to diagnose nix issues + poetry issues is a real headache with nix's non-descriptive error messages. The previous jupyterWith was convenient because I could just specify what packages I wanted without caring about what versions I wanted. I understand the documentation is still under construction so maybe there's a simple method to use jupyterWith like I did previously.
Relevant log output
No response
The text was updated successfully, but these errors were encountered: