Here's a minimal set of instructions to get up and running with the PLAsTiCC starter kit.
We recommend using the anaconda python distribution to run this package. If you don't have it already, follow the instructions here
Make sure you added the conda/bin dir to your path!
Clone this repository
git clone https://github.com/LSSTDESC/plasticc-kit.git
cd plasticc-kit/
Create a new environment from the YAML specification
conda env create -f conda_env_py36_[osx64|i686].yml
or
Create a new environment from scratch and let
pip
figure out dependencies and you sort out potential issuesconda create -n plasticc source activate plasticc [pip install six] # you might need this if you get errors about six not being available pip install -r requirements.txt
Start the notebook
jupyter notebook plasticc_astro_starter_kit.ipynb
- If you still get errors about missing packages when you run the notebook
- make sure you executed the
source activate plasticc
command in step 2. - check that
jupyter
is using the right kernel with theKernel > Change Kernel
menu item and selecting the one withplasticc
in the name
- make sure you executed the
If for some reason you can't find a kernel with plasticc
in the name, then inside the plasticc
environment:
install
ipykernel
and register theplasticc
environment:conda install ipykernel python -m ipykernel install --user --name plasticc --display-name "Python (plasticc)"
or
install the
nb_conda
package and letconda
manage integration with Jupytersource deactivate conda install nb_conda source activate plasticc