You need to download some files to follow this lesson:
python-intro-inflammation
.data
.$ cd
$ cd Desktop/python-intro-inflammation/data
If you will be using the Jupyter (IPython) notebook for the lesson, you have one of the following options:
$ module load Anaconda3
$ python -m ipykernel install --user --name ipy35 --display-name "Python 3"
Using other versions of Python
If you want to use a version of Python other than Anaconda, you need to edit the
kernel.json
file to setup theLD_LIBRARY_PATH
correctly. The following commands load a version of Python on Midway and create a new kernel:$ module load python/3.4-2015q1 $ python -m ipykernel install --user --name ipy34 --display-name "Python 3.4-2015q1"
Then, you need to edit the
~/.local/share/jupyter/ipy34/kernel.json
file to look like this:{ "display_name": "Python 3.4-2015q1", "language": "python", "argv": [ "/software/python-3.4-2015q1-el6-x86_64/bin/python", "-m", "ipykernel", "-f", "{connection_file}" ], "env":{ "LD_LIBRARY_PATH":"/software/python-3.4-2015q1-el6-x86_64/lib"} }
To start the notebook, do one of the following (depending on which of the above methods you have selected):
data
folder):$ jupyter notebook