Cleaning conda package cache

Source: https://stackoverflow.com/questions/36308531/how-to-uninstall-all-unused-packages-in-a-conda-virtual-environment If you are anything like me you start multiple data science projects. To make things a little easier I make multiple conda environments. Conda does a decent job at reducing the space used my the packages[^symlinks]. But over time the conda folders can become boated. It’s a good idea to do this regularly. conda clean --yes --all The all flag clears packages, and tarball used in the installation process....

February 14, 2022 · 1 min · Harsh Kumar

JupyterLab Python Environments

Adding Environments to JupyterLab Source: https://janakiev.com/blog/jupyter-virtual-envs/ Activate the environment: conda activate my_env Install ipykernel in your environment. Using: pip install --user ipykernel conda install -c conda-forge ipykernel Run the following to add the current kernel1 to jupyterlab installation in base environment: python -m ipykernel install --user --name=udemy-data-science Removing Environments from JupyterLab Check the list using: jupyter kernelspec list Remove a kernel using: jupyter kernelspec uninstall myenv So don’t forget to activate the environment first....

February 14, 2022 · 1 min · Harsh Kumar