![]() ![]() Hopefully you can also learn a bit about conda too.Ĭondacreate_dev.sh: this first one is used to create a base environment that will hold jupyterlab, and the package nb_conda_kernels which enables a Jupyter Notebook or JupyterLab application in one conda environment to access kernels for Python, R, and other languages found in other environments. Now I use the 2 scripts I linked above, and I will go through explaining what they do. To create an environment named på3 with python 3.3.0, using the channel conda-forge and a list of packages: conda create -y -name på3 python3.3.0 conda install -f -y -q -name på3 -c conda-forge -file requirements.txt conda activate på3. sudo -E conda install -c conda-forge nbcondakernels sudo -E conda create -c conda-forge -n python ipykernel sudo tljh-config reload.Yes a new fresh Jupyterlab+plugins for every environment.Ī few days ago I read this tweet by Vicki Boykis and one of the answers from Peter Baumgartner and decided to change my workflow a little bit. I used to have a default script to create a conda environment, in that script I would install all the packages I consider basic, plus Jupyterlab and some plugins. Managing environments in Python can be tricky. TL DR Use this script to create a base conda environment with Jupyterlab and some plugins, and this to create new environments and make them available when launching Jupyter. Manage conda environments and Jupyterlab easily. ![]()
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |