Installing an external library on the UI systems

It's a bit difficult to install libraries to make them usable with jupyter notebooks in general; it's slightly more difficult to make it work in a permission-controlled environment. However, if you want to try my plottyprint library for problem set 2 (which has the advantage of being easy to use), here's some code to try.

First try the code in the first cell below, and then close and halt the kernel and start a new notebook, and see if you can import plottyprint.

If that doesn't work, try the same procedure but with the code in the second cell below.

If that doesn't work, go back to the main screen of the notebooks setup, and start a new terminal window rather than a new notebook. In the terminal window, type pip install --user plottyprint and then see if it works in a new notebook.

In [7]:
import sys
!{sys.executable} -m pip install --user plottyprint
Requirement already satisfied: plottyprint in ./.local/lib/python3.7/site-packages (0.1)
Requirement already satisfied: statsmodels in /opt/conda/lib/python3.7/site-packages (from plottyprint) (0.10.2)
Requirement already satisfied: matplotlib>=2.1.1 in /opt/conda/lib/python3.7/site-packages (from plottyprint) (3.1.2)
Requirement already satisfied: numpy in /opt/conda/lib/python3.7/site-packages (from plottyprint) (1.17.3)
Requirement already satisfied: scipy in /opt/conda/lib/python3.7/site-packages (from plottyprint) (1.3.3)
Requirement already satisfied: pandas>=0.19 in /opt/conda/lib/python3.7/site-packages (from statsmodels->plottyprint) (0.25.3)
Requirement already satisfied: patsy>=0.4.0 in /opt/conda/lib/python3.7/site-packages (from statsmodels->plottyprint) (0.5.1)
Requirement already satisfied: python-dateutil>=2.1 in /opt/conda/lib/python3.7/site-packages (from matplotlib>=2.1.1->plottyprint) (2.8.1)
Requirement already satisfied: kiwisolver>=1.0.1 in /opt/conda/lib/python3.7/site-packages (from matplotlib>=2.1.1->plottyprint) (1.1.0)
Requirement already satisfied: cycler>=0.10 in /opt/conda/lib/python3.7/site-packages (from matplotlib>=2.1.1->plottyprint) (0.10.0)
Requirement already satisfied: pyparsing!=2.0.4,!=2.1.2,!=2.1.6,>=2.0.1 in /opt/conda/lib/python3.7/site-packages (from matplotlib>=2.1.1->plottyprint) (2.4.6)
Requirement already satisfied: pytz>=2017.2 in /opt/conda/lib/python3.7/site-packages (from pandas>=0.19->statsmodels->plottyprint) (2019.3)
Requirement already satisfied: six in /opt/conda/lib/python3.7/site-packages (from patsy>=0.4.0->statsmodels->plottyprint) (1.13.0)
Requirement already satisfied: setuptools in /opt/conda/lib/python3.7/site-packages (from kiwisolver>=1.0.1->matplotlib>=2.1.1->plottyprint) (45.0.0.post20200113)
In [2]:
!pip install --user plottyprint
Collecting plottyprint
  Using cached https://files.pythonhosted.org/packages/92/25/30d42a989117df1945ec4c15b676347f48e652adddd732fd154a09b53766/plottyprint-0.1-py3-none-any.whl
Requirement already satisfied: scipy in /opt/conda/lib/python3.7/site-packages (from plottyprint) (1.3.3)
Requirement already satisfied: numpy in /opt/conda/lib/python3.7/site-packages (from plottyprint) (1.17.3)
Requirement already satisfied: matplotlib>=2.1.1 in /opt/conda/lib/python3.7/site-packages (from plottyprint) (3.1.2)
Requirement already satisfied: statsmodels in /opt/conda/lib/python3.7/site-packages (from plottyprint) (0.10.2)
Requirement already satisfied: cycler>=0.10 in /opt/conda/lib/python3.7/site-packages (from matplotlib>=2.1.1->plottyprint) (0.10.0)
Requirement already satisfied: pyparsing!=2.0.4,!=2.1.2,!=2.1.6,>=2.0.1 in /opt/conda/lib/python3.7/site-packages (from matplotlib>=2.1.1->plottyprint) (2.4.6)
Requirement already satisfied: kiwisolver>=1.0.1 in /opt/conda/lib/python3.7/site-packages (from matplotlib>=2.1.1->plottyprint) (1.1.0)
Requirement already satisfied: python-dateutil>=2.1 in /opt/conda/lib/python3.7/site-packages (from matplotlib>=2.1.1->plottyprint) (2.8.1)
Requirement already satisfied: pandas>=0.19 in /opt/conda/lib/python3.7/site-packages (from statsmodels->plottyprint) (0.25.3)
Requirement already satisfied: patsy>=0.4.0 in /opt/conda/lib/python3.7/site-packages (from statsmodels->plottyprint) (0.5.1)
Requirement already satisfied: six in /opt/conda/lib/python3.7/site-packages (from cycler>=0.10->matplotlib>=2.1.1->plottyprint) (1.13.0)
Requirement already satisfied: setuptools in /opt/conda/lib/python3.7/site-packages (from kiwisolver>=1.0.1->matplotlib>=2.1.1->plottyprint) (45.0.0.post20200113)
Requirement already satisfied: pytz>=2017.2 in /opt/conda/lib/python3.7/site-packages (from pandas>=0.19->statsmodels->plottyprint) (2019.3)
Installing collected packages: plottyprint
Successfully installed plottyprint-0.1
In [ ]:
 
In [ ]:
 

links