Installation#
To install science-jubilee:
Clone the repository:
git clone https://github.com/machineagency/science-jubilee.gitWe recommend using virtual environments to handle dependencies. See here for more information on virtual environments. To do this:
Move into the new directory:
cd science-jubileeCreate a virtual environment named
.venv:python3 -m venv .venvActivate the virtual environment:
source .venv/bin/activateYou should now see
(.venv)to the left of your command line prompt! (If you wish to leave the virtual environment, typedeactivatefrom any directory)
Make sure you’re using the latest version of pip:
python3 -m pip install --upgrade pipInstall the
science_jubileepackage:python3 -m pip install -e .Installation complete! Whenever you try to run programs using
science_jubilee, be sure to activate the virtual environment that you created.
Jupyter Notebooks#
To use science_jubilee from within Jupyter notebooks:
If you do not already have JupyterLab installed, do so from outside of your virtual environment:
python3 -m pip install jupyterlab.Activate the virtual environment where
science_jubileeis installed.You need to add your virtual environment to Jupyter! First, make your kernel naming it something you want, e.g., “science-jubilee”
python3 -m ipykernel install --user --name=<your_kernel_name>Launch JupyterLab:
jupyter labSelect the kernel you just made!
When creating new notebooks, be sure to also choose the kernel you just added there!