From 1b2ff8d8abefe81b789f5286e5df1b77ce3dc64c Mon Sep 17 00:00:00 2001 From: Karim Ahmed <karim.ahmed@xfel.eu> Date: Mon, 24 Feb 2020 08:36:54 +0100 Subject: [PATCH] create kernel for venv --- README.rst | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) diff --git a/README.rst b/README.rst index a251c3a4a..edfa02131 100644 --- a/README.rst +++ b/README.rst @@ -70,15 +70,26 @@ In additional install pyDetLib package, which is required for many notebooks:: pip install -r requirements.txt pip install . ++++++++++++++++++++++++++++++++++++++++ +Installing kernel for Jupyter Notebooks ++++++++++++++++++++++++++++++++++++++++ + +To set a kernel for your virtual environment:: + + source /path/to/new/virtual/environment/bin/activate + pip install ipykernel + python -m ipykernel install --user --name <virtenv-name> --display-name "virtenv-display-name" + +This can be useful for Jupyter notebook tools as "max-jhub.desy.de". Development Installation ------------------------ -For a development installation in your home directory, which automatically +For a development installation, which automatically picks up (most) changes, first install the dependencies as above, -but then install the tool-chain separately in development mode:: +but then install the tool-chain separately in development mode (install in home directory using --user, in case of using Anaconda/3):: - pip install -e . --user + pip install -e . Activate Offline calibration -- GitLab