Skip to content

Commit

Permalink
windows support added to lesson 4
Browse files Browse the repository at this point in the history
  • Loading branch information
cuttlefishh committed Oct 10, 2018
1 parent 963d469 commit d686536
Show file tree
Hide file tree
Showing 4 changed files with 41 additions and 4 deletions.
Binary file added images/jupyter_for_windows.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/jupyter_shortcuts_command_mode.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/jupyter_shortcuts_edit_mode.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
45 changes: 41 additions & 4 deletions lessons/lesson04.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,11 @@
"\n",
"_Conda is an open source package management system and environment management system for installing multiple versions of software packages and their dependencies and switching easily between them. It works on Linux, OS X and Windows, and was created for Python programs but can package and distribute any software._ -- <http://conda.pydata.org/docs/>\n",
"\n",
"First, install Miniconda3: <http://conda.pydata.org/miniconda.html>. By default, environments you create will use Python 3, but you can specify Python 2 if required. To launch Conda: if you are using Windows, open the Anaconda Prompt (instead of PowerShell) from the Start menu; if you are using macOS or Linux, the conda command can be accessed from your Terminal.\n",
"Install Miniconda3: <http://conda.pydata.org/miniconda.html>. By default, environments you create will use Python 3, but you can specify Python 2 if required. \n",
"\n",
"Then, create a conda environment. Let's make an environment called `python3` for this class that includes Python 3 and Jupyter. \n",
"To run Conda: Windows users, open the Anaconda Prompt (instead of PowerShell) from the Start menu and run `conda ...` commands. macOS and Linux users, open Terminal and run `conda ...` commands.\n",
"\n",
"Create a Conda environment. Let's make an environment called `python3` for this class that includes Python 3 and Jupyter. \n",
"\n",
"```\n",
"conda create -n python3 python=3 jupyter\n",
Expand Down Expand Up @@ -115,14 +117,49 @@
"\n",
"#### Jupyter (IPython) notebooks\n",
"\n",
"To launch a Jupyter notebook, go to terminal and type:\n",
"For macOS and Linux users, to launch a Jupyter notebook, open Terminal and type:\n",
"\n",
"```\n",
"source activate python3\n",
"jupyter notebook\n",
"```\n",
"\n",
"Open up a new notebook, then check out **Help > User Interface Tour** and **Help > Keyboard Shortcuts**."
"For Windows users, to launch a Jupyter notebook, open Anaconda Prompt and type:\n",
"\n",
"```\n",
"conda activate python3\n",
"jupyter notebook\n",
"```\n",
"\n",
"Open up a new notebook, then check out **Help > User Interface Tour** and **Help > Keyboard Shortcuts**. See screenshots `jupyter_shortcuts_*` in `images`. When you are done exploring, delete the notebook `Untitled.ipynb` that you just created."
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"### Downloading Today's Lesson\n",
"\n",
"At the start of every class, we will follow a regular routine of navigating to our lessons folder, downloading the day's lesson, activating our Conda environment, and launching Jupyter notebook.\n",
"\n",
"For macOS and Linux users:\n",
"\n",
"1. Open Terminal\n",
"2. `cd sio209/lessons`\n",
"3. `curl -O LINKTOLESSON`\n",
"4. `source activate python3`\n",
"5. `jupyter notebook`\n",
"\n",
"For Windows users:\n",
"\n",
"1. Open Git Bash\n",
"2. `cd sio209/lessons`\n",
"3. `curl -O LINKTOLESSON`\n",
"4. Open Anaconda Prompt\n",
"5. `conda activate python3`\n",
"6. `jupyter notebook`\n",
"\n",
"Windows users, see screenshot `jupyter_for_windows.png` in `images`."
]
},
{
Expand Down

0 comments on commit d686536

Please sign in to comment.