Managing Environments

Managing Conda Environments

Environment aufsetzten: conda create -n myenv python=3.6 pandas numpy jupytext ipykernel

Mehr dazu hier.

Installation

Gewöhnlich wird jupyter notebook in der base Umgebung ausgeführt!

conda install jupyter

Anschließend öffnen mit jupyter notebook

nb_conda

Hilfreich ist, die Conda-Erweiterung für Jupyter in der Base-Umgebung zu installieren:

Folgendes in der Base-Umgebung ausführen.

conda install nb_conda

NOTE: In den Umgebungen muss ipykernel installiert sein, damit Jupyter notebook diese Umgebungen nutzen kann!!!

jupytext (in Jupyter Notebook)

Nutzten: jupytext erlaubt es, Jupyter Notebooks als Code (.py) zu öffnen.

Folgendes in der Ziel-Umgebung installieren (nicht in base).

conda install jupytext -c conda-forge
jupyter notebook --generate-config
echo c.NotebookApp.contents_manager_class = "jupytext.TextFileContentsManager" >> %USERPROFILE%\\.jupyter\\jupyter_notebook_config.py