This is the course website for IS445(AOG) in Fall 2020
To install the packages and libraries we need for this course we will be using the Anaconda package manager, so you’ll need to install this first. First, navigate to the individual edition page and scroll down until you see the download links and select either a 32 or 64 bit installation, depending on your machine (if you’re not sure if you are on a 32/64 bit machine the easiest is probably to google your computer’s name and date along with “32 or 64”).:
NOTE: You will need the Python 3.X version (the version might be different than listed on the conda webpage).
Next, follow these installation steps to install anaconda on your computer:
NOTE: If you already have Anaconda installed you might get an error. You can simply make sure Anaconda is the most recent version by opening a Terminal (Mac) or the Anaconda Prompt (Windows) and typing conda update anaconda
.
Now we will make a “stand-alone” envirnoment to do our data-viz stuff in. This is useful to make sure we install packages in a way that will not cause bad interactions.
Here is a ~2 minute movie of how this process looks on my Mac (it may take longer on your machine!) which covers the instructions in section 2.1 and 2.2 of the installation process:
conda create -n DataViz python=3.8 matplotlib=3.2.2 numpy jupyter pillow pandas scipy ipywidgets palettable bqplot h5py requests traitlets geopandas contextily ipyvolume ffmpeg descartes basemap cartopy webcolors ipyleaflet wordcloud nltk xlrd libpng pip yt -c conda-forge
conda create -n DataViz python=3.7 matplotlib=3.2.2 numpy jupyter pillow pandas scipy ipywidgets palettable bqplot h5py requests traitlets geopandas contextily ipyvolume ffmpeg descartes basemap cartopy webcolors ipyleaflet wordcloud nltk xlrd libpng pip yt -c conda-forge
Solving environment: failed with initial frozen solve. Retrying with flexible solve.
This does not mean your installation has failed – as long as its still running let it be! (This can take a while – average is ~30 minutes, but sometimes it can take over night.)Note: Right now we need a special version of matplotlib
to work with yt
, but this might change in the future.
conda activate DataViz
pip install PyGEL3D
NOTE: Here I am assuming your default browser is either Chrome or Firefox. If not, change it to one of these browsers for the duration of this class.
YOU WILL NEED TO DO THIS EVERY TIME YOU OPEN UP JUPYTER NOTEBOOK
conda activate DataViz
in the terminal window/anaconda promptjupyter notebook
to open the notebook from the command lineA movie of this process is shown below (~5 minutes):
A few things of note:
*
is showing in the In[]
part to the left of each cell this means your computer is thinking. Its best to wait until its done with one cell before moving onto the next one.PyGEL3D
install near the end in case you get an error, but you might not. If you do get this error, the process is:
conda activate DataViz
pip show PyGEL3D
bqplot
plot or the ipyvolume
plot there are a few tips listed – try refreshing your browser, try installing the extensions (uncomment those lines and run the cell and try running the plotting cells again), or completely close and completely re-open your jupyter notebook as discussed in section 3.1