-
Notifications
You must be signed in to change notification settings - Fork 1
How to work in Jupyter Lab
While it is possible to simply install and run jupyter-lab
within a virtualenv, it is maybe not desirable to install the whole jupyter-lab package for every single project environment. A more elegant solution is to install a so-called 'kernelspec' that points your system-level Jupyter with information about where your virtualenv lives, respectively.
Assumes that Jupyter-Lab is installed on your system (outside a virtual env).
- enter virtual env with
pipenv shell
-
pipenv install ipykernel
orpipenv install --dev ipykernel
if end users don't need to use Jupyter. - python -m ipykernel install --user --name=YOUR_RECOGNIZABLE_NAME_FOR_THIS_ENV
Now you should be able to start jupyter-lab
on your system (outside the virtual env) and the launcher will offer you to start a notebook using this virtualenv.
If you delete the project virtualenv for whatever reason and want to keep your kernel-list in Jupyter clean, you can list all kernels Jupyter knows of
jupyter kernelspec list
and then remove the respective kernel specifications with
jupyter kernelspec uninstall YOUR_RECOGNIZABLE_NAME_FOR_THIS_ENV
This Wiki is curated by the Social Media Observatory, which is hosted by the Leibniz Institute for Media Research | Hans-Bredow-Institut and supported by the Research Institute Social Cohesion. A pretty version can be found here.
- Instagram-Tools
- Twitter-Tools
- Wikipedia-Tools
- Facebook-Tools
- YouTube-Tools
- Telegram-Tools
- Smaller Platform Tools
- Cross-Platform Tools
- General News Scrapers
- Secure Storage and Archiving
- Data Anonymization Tools
- Data Publishing