(Important) Unlike your typical apps, most of the following procedures are all happening in terminal (osx) or command line (windows). So if you are not familiar with terminal or command line, please find a short instruction video on these in YouTube and watch it before you start the procedure below.
-
Download
Anaconda
from https://www.continuum.io/downloads for your OS. I recommend to download the graphical installer forPython
v3.6. -
Run the downloaded graphical installer. Do not change any default settings during installation. It is important to choose the
Just me
option for the install location ofAnaconda
. If you install for all users, you may experience some permission issues.
-
Run terminal.app
-
In terminal, type:
$ source activate root
- If
anaconda
is installed successfully you would see the following prompt.
(root) $
-
Run anaconda command line.
-
In command line window, type:
> activate root
- If
anaconda
is installed successfully you would see the following prompt.
(root) >
-
conda
has many useful functions which makes python programming easier. It provides virtual environments where users can maintain multiples of different setups for python and module installations. -
Update
conda
by:
(root) $ conda update conda
- Update your modules in your environment.
(root) $ conda update --all
-
I provide environment files in the
pytheos
github repository (https://github.com/SHDShim/pytheos):py35ds-mac.yml
for mac andpy35ds-win64.yml
for windows. This environment files have a list of essential packages for runningpytheos
and other scientific calculations in Jupyter notebook. -
Download a zipped file for the
pytheos
package by clicking theclone or download
button (green at the top right in thepytheos
github site). -
Make a new folder to store python related files. In my example, I will assume that you made
Python
folder under your home folder. -
Move the zip file to the
Python
folder and unzip the file. -
In the terminal or command line, navigate to the
pytheos-master
folder under thePython
folder. -
Make sure the
yml
files exist in your folder (dir
for windows andls
for osx). -
Once you confirm the existence, run the following command for osx. This will create a new environment where you can run
jupyter notebook
andpytheos
.
(root) $ conda env create -f py35ds-mac.yml
- For windows,
(root) > conda env create -f py35ds-win64.yml
- Once the environment is successfully created, switch to the new environment (osx):
(root) $ source activate py35ds
- For windows:
(root) > activate py35ds
- The command above will change the prompt to (osx):
(py35ds) $
- For windows,
(py35ds) >
- I recommand to run
Jupyter
notebook
from your home folder. So first navigate to your home folder in the terminal (osx) or command line (windows).
(py35ds) $ jupyter notebook --browser chrome
-
This will open the chrome browser and show the navigator tab of the jupyter notebook.
-
Now you can go to the
pytheos
example folder and play with the example files.
- Once you finish using jupyter notebook, in the terminal or command line, press
control+c
. This will quit the jupyter server.
If you have questions, please email Dan Shim.