swc-python
on your Desktop.You should now see two new folders called data
and code
in your swc-python
directory on your
Desktop.
If you’re using macOS, you should run the Anaconda Navigator (installed in /Users/<username>/anaconda3/bin
by default unless you’ve moved it to Applications
) and then go to Environments -> base(root) ‘Play’ button -> ‘Open Terminal’. This gives you a terminal that has all
the shell commands available that you’ve learnt already but also allows you to run python as well.
If you’re using Windows, you should run git-bash as you did for the shell lesson. After that, you need to enter the following commands:
export PATH="$PATH:/c/Users/$USERNAME/AppData/Local/Continuum/anaconda3/Scripts/:/c/Users/$USERNAME/AppData/Local/Continuum/anaconda3/"
export PATH="$PATH:/c/ProgramData/Anaconda3/Scripts/:/c/ProgramData/Anaconda3/"
The first line is if you installed Anaconda 3 as a user, the second is if you installed it as an admin. If you’re unsure which you did, put in both!
swc-python
folderWhether you are on macOS or Windows you should now be at a Shell prompt that is capable of running
Python. You should now navigate to your swc-python
directory:
$ cd ~/Desktop/swc-python/data
IPython is an alternative interpreter to the vanilla python
interpreter. It provides an interactive command-line based interpreter with
various convenience features and commands. You should have IPython on your system if you installed
Anaconda Distribution.
To start using IPython from the prompt, execute:
$ ipython