What is a best practice for installing and running Jupyter Notebooks/Lab in Conda?
Starting with the assumption that it's a best practice to run your Python coding projects in separate environments:
Option 1: Should Jupyter be installed and run in the base
Conda environment while selecting the sub-environment as a kernel from within Jupyter itself?
See argument for this way here: https://towardsdatascience.com/how-to-set-up-anaconda-and-jupyter-notebook-the-right-way-de3b7623ea4a
Notes: Having only one install would obviously save space on your computer. Though I believe you'd still have to install ipykernel
into each environment for this way to work, per this answer:
https://stackoverflow.com/a/53546634/1899063
Option 2: Or should it be installed separately each time you create a new environment (and thus run from that environment directly)?
See argument for this way here: https://towardsdatascience.com/get-your-computer-ready-for-machine-learning-how-what-and-why-you-should-use-anaconda-miniconda-d213444f36d6
That document is kind of long, so here is the relevant excerpt:
Itβs a good idea at the start of every project to create a new project directory. Then within this directory, keep all of the relevant files for that project there, such as the data, the code and the tools you use... Doing it like this allows for an easy way to share your projects with others in the future.