olynch / scientific-fhs

A nixos FHS for julia and conda, and possibly other scientific tools
44 stars 14 forks source link

Unclear Instructions for IJulia Setup #1

Open th3ta-x00 opened 3 years ago

th3ta-x00 commented 3 years ago

I am able to install packages for Julia without any issues. However, I was not able to understand how you were able to setup IJulia. I attempted to use a nix-shell environment with jupyter and jupyterlab, but it fails to setup the Julia kernel.

[I 14:37:07.555 LabApp] Build is up to date
cannot execute /nix/store/pyvvzii1bpc029xqganjgp6d0wzgjzlf-julia-1.6.0/bin/julia: NIX_LD or NIX_LD_x86_64-linux is not set
[I 14:37:10.456 LabApp] Kernel started: acff338a-dcc0-45a6-b55d-53cfc56cad55, name: julia-1.6
[I 14:37:13.458 LabApp] KernelRestarter: restarting kernel (1/5), new random ports
cannot execute /nix/store/pyvvzii1bpc029xqganjgp6d0wzgjzlf-julia-1.6.0/bin/julia: NIX_LD or NIX_LD_x86_64-linux is not set
[I 14:37:16.474 LabApp] KernelRestarter: restarting kernel (2/5), new random ports
cannot execute /nix/store/pyvvzii1bpc029xqganjgp6d0wzgjzlf-julia-1.6.0/bin/julia: NIX_LD or NIX_LD_x86_64-linux is not set
[I 14:37:19.487 LabApp] KernelRestarter: restarting kernel (3/5), new random ports
cannot execute /nix/store/pyvvzii1bpc029xqganjgp6d0wzgjzlf-julia-1.6.0/bin/julia: NIX_LD or NIX_LD_x86_64-linux is not set
[I 14:37:22.500 LabApp] KernelRestarter: restarting kernel (4/5), new random ports
cannot execute /nix/store/pyvvzii1bpc029xqganjgp6d0wzgjzlf-julia-1.6.0/bin/julia: NIX_LD or NIX_LD_x86_64-linux is not set
[W 14:37:25.511 LabApp] KernelRestarter: restart failed
[W 14:37:25.512 LabApp] Kernel acff338a-dcc0-45a6-b55d-53cfc56cad55 died, removing from map.

I wasn't able to find any authoritative instructions on how to use Conda with Nix either... All the resources I found were convoluted and differed in their approach.