diff --git a/_includes/install_instructions/python.html b/_includes/install_instructions/python.html index dd7e5e2..b01dc8b 100644 --- a/_includes/install_instructions/python.html +++ b/_includes/install_instructions/python.html @@ -11,10 +11,9 @@

Python

Python is a popular language for research computing, and great for general-purpose programming as - well. Installing all of its research packages individually can be - a bit difficult, so we recommend - Anaconda, - an all-in-one installer. + well. We'll be using some standard tools to first install Python + and then the packages required for this workshop using + pip.

@@ -29,8 +28,8 @@

Python

if you do not plan to use Jupyter Notebook environment. {% endcomment %}

- We will teach Python using the Jupyter Notebook, - a programming environment that runs in a web browser (Jupyter Notebook will be installed by Anaconda). For this to work you will need a reasonably + We will teach Python using the Jupyter Lab notebooks, + a programming environment that runs in a web browser (Jupyter Lab will be installed by pip). For this to work you will need a reasonably up-to-date browser. The current versions of the Chrome, Safari and Firefox browsers are all supported @@ -48,9 +47,23 @@

Python

    -
  1. Open https://www.anaconda.com/download/success with your web browser.
  2. -
  3. Download the Anaconda for Windows installer with Python 3. (If you are not sure which version to choose, you probably want the 64-bit Graphical Installer Anaconda3-...-Windows-x86_64.exe)
  4. -
  5. Install Python 3 by running the Anaconda Installer, using all of the defaults for installation except make sure to check Add Anaconda to my PATH environment variable.
  6. +
  7. Open https://www.python.org/downloads/ with your web browser.
  8. +
  9. Click on Download Python 3.x.y under "Download the latest version for Windows" near the top.
  10. +
  11. Click on the downloaded installer and run it.
  12. +
  13. You'll see a popup window from the installer. Check the "Add python.exe to PATH" box near the bottom + and then click Install Now.
  14. +
  15. To confirm that it's installed, open git-bash (installed per the instructions above) + and type python --version. This should print something like:"Python 3.12.5".
  16. +
  17. Next we'll install Jupyter Lab and the various Python packages we'll be using. + These will all be installed in a Python "Virtual Environment" (venv). Type these commands in the git-bash shell: +
    +	     cd ~/Desktop
    +	     python -m venv venv
    +	     source venv/Scripts/activate
    +	     pip install jupyterlab ipywidgets pandas matplotlib
    +	    
    + That last step will take a while and will print a lot of progress output showing the packages being installed. +

Video Tutorial

@@ -61,10 +74,23 @@

Video Tutorial

    -
  1. Open https://www.anaconda.com/download/success with your web browser.
  2. -
  3. Download the Anaconda Installer with Python 3 for macOS (you can either use the Graphical or the Command Line Installer).
  4. -
  5. Install Python 3 by running the Anaconda Installer using all of the defaults for installation.
  6. +
  7. Open https://www.python.org/downloads/ with your web browser.
  8. +
  9. Click on Download Python 3.x.y under "Download the latest version for macOS" near the top.
  10. +
  11. Click on the downloaded installer and run it, responding to the license agreement prompt, and so on.
  12. +
  13. To confirm that it's installed, open Terminal + and type python --version. This should print something like:"Python 3.12.5".
  14. +
  15. Next we'll install Jupyter Lab and the various Python packages we'll be using. + These will all be installed in a Python "Virtual Environment" (venv). Type these commands in the git-bash shell: +
    +	     cd ~/Desktop
    +	     python -m venv venv
    +	     source venv/bin/activate
    +	     pip install jupyterlab ipywidgets pandas matplotlib
    +	    
    + That last step will take a while and will print a lot of progress output showing the packages being installed. +
+

Video Tutorial

@@ -73,39 +99,20 @@

Video Tutorial

+ Python is usually already installed on most Linux distributions.
    -
  1. Open https://www.anaconda.com/download/success with your web browser.
  2. -
  3. Download the Anaconda Installer with Python 3 for Linux.
    - (The installation requires using the shell. If you aren't - comfortable doing the installation yourself - stop here and request help at the workshop.) -
  4. -
  5. - Open a terminal window and navigate to the directory where - the executable is downloaded (e.g., `cd ~/Downloads`). -
  6. -
  7. - Type
    bash Anaconda3-
    and then press - Tab to autocomplete the full file name. The name of - file you just downloaded should appear. -
  8. -
  9. - Press Enter - (or Return depending on your keyboard). - You will follow the text-only prompts. - To move through the text, press Spacebar. - Type yes and press enter to approve the license. - Press Enter (or Return) - to approve the default location - for the files. - Type yes and press - Enter (or Return) - to prepend Anaconda to your PATH - (this makes the Anaconda distribution the default Python). -
  10. -
  11. - Close the terminal window. -
  12. +
  13. To confirm that it's installed, open a terminal + and type python3 --version. This should print something like:"Python 3.12.5".
  14. +
  15. Next we'll install Jupyter Lab and the various Python packages we'll be using. + These will all be installed in a Python "Virtual Environment" (venv). Type these commands in the git-bash shell: +
    +	     cd
    +	     python3 -m venv venv
    +	     source venv/bin/activate
    +	     pip install jupyterlab ipywidgets pandas matplotlib
    +	    
    + That last step will take a while and will print a lot of progress output showing the packages being installed. +