Skip to content

Commit

Permalink
Recommend using Python 3.9 instead of Python 3.7 (#44)
Browse files Browse the repository at this point in the history
Since scientific Python packages following NEP29 should have deprecated Python 3.7 as of 26 Dec 2021.
  • Loading branch information
weiji14 authored and jomey committed Apr 6, 2022
1 parent e27a9f4 commit c2e7903
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 12 deletions.
6 changes: 3 additions & 3 deletions book/preliminary/conda.md
Original file line number Diff line number Diff line change
Expand Up @@ -68,13 +68,13 @@ print('Hello World!')


``` bash
$ conda create -n py37 python=3.7
$ conda create --name py39 python=3.9
```

To use Python 3.7:
To use Python 3.9:

``` bash
$ conda activate py37
$ conda activate py39
```

To check if you have the correct version:
Expand Down
18 changes: 9 additions & 9 deletions book/preliminary/python.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@

## Overview

While we will be using a cloud-hosted computing environment during the hackweek
({ref}`event-jupyterhub`), it is often desirable to run Python code on your laptop.
We also want to ensure that hackweek tutorials or other scientific code is
While we will be using a cloud-hosted computing environment during the hackweek
({ref}`event-jupyterhub`), it is often desirable to run Python code on your laptop.
We also want to ensure that hackweek tutorials or other scientific code is
reproducible and can be run on different computers and operating systems.

This lesson takes you through our recommended procedure for managing Python
environments and software on your personal computer. We suggest you follow these
instructions in advance so that we can help you troubleshoot during the hackweek
This lesson takes you through our recommended procedure for managing Python
environments and software on your personal computer. We suggest you follow these
instructions in advance so that we can help you troubleshoot during the hackweek
and have a fully functioning environment after.

## Python Software
Expand Down Expand Up @@ -65,13 +65,13 @@ Python 3.7.3|Anaconda custom (x86_64)| (default, Mar 27 2019, 22:11:17)
We will be using Python 3 during the week. Since Anaconda (on Linux) expects you to work in the `bash` shell, if this is not already your default shell, you need to set it to be so (use the `chsh -s /bin/bash` command to change your default shell to bash), then you can create an isolated Python environment with the following commands:

``` bash
conda create -n py37 python=3.7
conda create --name py39 python=3.9
```

To use Python 3.7:
To use Python 3.9:

``` bash
conda activate py37
conda activate py39
```

To check if you have the correct version activated
Expand Down

0 comments on commit c2e7903

Please sign in to comment.