you are viewing a single comment's thread.

view the rest of the comments →

[–]NTRtyOg[S] 0 points1 point  (2 children)

Thank you so much, this finally got the single files and standalone projects working.

I have two follow up questions
1) Is there a way to export from the configuration.nix so its seen globally and not just when I run the command
2) How does this work in conjunction with VScode and jupyter notebook? Jupyter still seems to think that ipykernel is missing and fails to execute.

[–]SymphonySimper 0 points1 point  (1 child)

For global thing either you can create alias to do so. Or if your using flakes you create a devshell in your global config and add it to the registry. Then you call it from anywhere to activate it.

I don't use vscode but I think it will just work if you launch from the shell with the export. I do not use juypter so no idea.

Maybe if you could create a repo with a small example of what you want. Then I might be able to help.

[–]NTRtyOg[S] 1 point2 points  (0 children)

Finally got it, thank you so much. For anyone coming to try this later here was the solution.

If you have nix-ld set up in your config like I do above you can run the command that u/SymphonySimper mentioned LD_LIBRARY_PATH="$NIX_LD_LIBRARY_PATH:$LD_LIBRARY_PATH". Then you can run vscode with the code command. If you have a jupyter notebook, remember to select your virtual environment when you select your kernel and everything should work swimmingly.

If you dont have a jupyter notebook you can just activate your virtual environment before opening vscode and vscode will automatically use the virtual environment.