Open djacu opened 2 years ago
I tried adding nodejs
and npm
to the resulting jupyter lab environment via
jupyterEnvironment = (mkJupyterEnvFromKernelPath pkgs ./kernels).overrideAttrs (
oa: {buildInputs = [pkgs.nodePackages.npm pkgs.nodejs];}
);
but the packages were not found.
Extension Installation Methods
There are two methods for installing JupyterLab extensions: pre-built and source. See JupyterLab Extensions documentation. There are some previous findings from my research here https://github.com/tweag/jupyterWith/issues/222.
Installing from Source
Installing from source will require
Node.js
andnpm
. I tried two methods: the Extensions Manager and CLI via jupyter labextension. Both methods failed.When I tried using the Extensions Manager an error popped up with the following message:
This was the error when I tried it through the CLI.
Even if we provide
Node.js
andnpm
to the environment, the installation will still be stateful, and it still might not work because much of the jupyter environment has been moved to the nix store. I can see if it is possible, but long term, I don't think we should invest much in this method.Installing from Pre-Built
Pre-built extensions can be installed with pip or conda. I checked in
python39Packages
for a few and did not find any. Using pip or conda is definitely not possible.Roadmap
I see two things we can do.
pip
andconda
, we should be able to package them with poetry and make them available.