I downloaded someone else's project and the structure is as follows:
project/
notebooks/
notebook_a.ipynb
notebook_b.ipynb
library/
Manifest.toml
Project.toml
src/
test/
In the notebooks I would like to import library
, and install its dependencies within its own evironment.
Following the sugestions here, I can do
using Pkg
Pkg.activate("../library/")
but I wonder if I could install a kernel that has the project directory specified and automatically activates the library
environment. What should I pass to IJulia
's installkernel
? "--project=..."
what?
I use conda
regularly and this confused me because I thought that running notebook
once the environment is activated in the command line would have the right environment in the notebook, but this was not the case.