Skip to content

Commit

Permalink
Python Version Notice Wording
Browse files Browse the repository at this point in the history
Update the lab setup instructions to advise only using Python 3
for labs. Also added caveat regarding Python 2 in the videos.
  • Loading branch information
hpreston committed Jan 6, 2021
1 parent c934513 commit 94d2ce5
Show file tree
Hide file tree
Showing 20 changed files with 186 additions and 99 deletions.
15 changes: 10 additions & 5 deletions application_hosting/guestshell/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,28 +12,33 @@ cd netprog_basics/application_hosting/guestshell
Be sure to complete the [General Workstation Setup](https://github.com/CiscoDevNet/netprog_basics/blob/master/readme_resources/workstation_setup.md) instructions before beginning this lesson.

### Python Environment Setup
It is recommended that this lesson be completed using Python 3.6. A recent version of Python 2.7 or Python 3.5 should also work.
It is recommended that this lesson be completed using Python 3.8. Other versions of Python 3 should also work.

> **Note about Python 2:** Python 2 was [sunset](https://www.python.org/doc/sunset-python-2/) by Python Software Foundation on January 1, 2020. This means that no more updates to Python 2 are being worked on, including security updates. Python 3 is now the recommended version of Python for everyone to use. Most Python developers of software, packages, and scripts have migrated to Python 3 already, however you may find some older scripts and tools that are no longer maintained that only work with Python 2.
>
> You may see/hear references to Python 2 within the videos in this course from before January 2020, however all examples scripts and demos available in the GitHub repo to run have been updated to leverage Python 3.
It is highly recommended to leverage Python Virtual Environments for completing exercises in this course.

*There is no need to create independent venv for each lesson, but you can if you choose. At a minimum you should create 2 venvs, one for Python 2 and one for Python 3.*
*There is no need to create independent venv for each lesson, but you can if you choose.*

Follow these steps to create and activate a venv.

***Note: If you are leveraging a shared venv across all lessons simply activate it.***

```bash
# OS X or Linux
virtualenv venv --python=python3
python3 -m venv venv
source venv/bin/activate
```

```bash
# Windows (assumes Python 3 is default)
virtualenv venv
# Windows
python -m venv venv
venv/Scripts/activate
```


#### Install Python Requirements for Lesson
With the Virtual Environment activated, use pip to install the necessary requirements.

Expand Down
15 changes: 10 additions & 5 deletions application_hosting/iox/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,28 +12,33 @@ cd netprog_basics/application_hosting/iox
Be sure to complete the [General Workstation Setup](https://github.com/CiscoDevNet/netprog_basics/blob/master/readme_resources/workstation_setup.md) instructions before beginning this lesson.

### Python Environment Setup
It is recommended that this lesson be completed using Python 3.6. A recent version of Python 2.7 or Python 3.5 should also work.
It is recommended that this lesson be completed using Python 3.8. Other versions of Python 3 should also work.

> **Note about Python 2:** Python 2 was [sunset](https://www.python.org/doc/sunset-python-2/) by Python Software Foundation on January 1, 2020. This means that no more updates to Python 2 are being worked on, including security updates. Python 3 is now the recommended version of Python for everyone to use. Most Python developers of software, packages, and scripts have migrated to Python 3 already, however you may find some older scripts and tools that are no longer maintained that only work with Python 2.
>
> You may see/hear references to Python 2 within the videos in this course from before January 2020, however all examples scripts and demos available in the GitHub repo to run have been updated to leverage Python 3.
It is highly recommended to leverage Python Virtual Environments for completing exercises in this course.

*There is no need to create independent venv for each lesson, but you can if you choose. At a minimum you should create 2 venvs, one for Python 2 and one for Python 3.*
*There is no need to create independent venv for each lesson, but you can if you choose.*

Follow these steps to create and activate a venv.

***Note: If you are leveraging a shared venv across all lessons simply activate it.***

```bash
# OS X or Linux
virtualenv venv --python=python3
python3 -m venv venv
source venv/bin/activate
```

```bash
# Windows (assumes Python 3 is default)
virtualenv venv
# Windows
python -m venv venv
venv/Scripts/activate
```


#### Install Python Requirements for Lesson
With the Virtual Environment activated, use pip to install the necessary requirements.

Expand Down
15 changes: 10 additions & 5 deletions application_hosting/python_onbox/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,28 +12,33 @@ cd netprog_basics/application_hosting/python_onbox
Be sure to complete the [General Workstation Setup](https://github.com/CiscoDevNet/netprog_basics/blob/master/readme_resources/workstation_setup.md) instructions before beginning this lesson.

### Python Environment Setup
It is recommended that this lesson be completed using Python 3.6. A recent version of Python 2.7 or Python 3.5 should also work.
It is recommended that this lesson be completed using Python 3.8. Other versions of Python 3 should also work.

> **Note about Python 2:** Python 2 was [sunset](https://www.python.org/doc/sunset-python-2/) by Python Software Foundation on January 1, 2020. This means that no more updates to Python 2 are being worked on, including security updates. Python 3 is now the recommended version of Python for everyone to use. Most Python developers of software, packages, and scripts have migrated to Python 3 already, however you may find some older scripts and tools that are no longer maintained that only work with Python 2.
>
> You may see/hear references to Python 2 within the videos in this course from before January 2020, however all examples scripts and demos available in the GitHub repo to run have been updated to leverage Python 3.
It is highly recommended to leverage Python Virtual Environments for completing exercises in this course.

*There is no need to create independent venv for each lesson, but you can if you choose. At a minimum you should create 2 venvs, one for Python 2 and one for Python 3.*
*There is no need to create independent venv for each lesson, but you can if you choose.*

Follow these steps to create and activate a venv.

***Note: If you are leveraging a shared venv across all lessons simply activate it.***

```bash
# OS X or Linux
virtualenv venv --python=python3
python3 -m venv venv
source venv/bin/activate
```

```bash
# Windows (assumes Python 3 is default)
virtualenv venv
# Windows
python -m venv venv
venv/Scripts/activate
```


#### Install Python Requirements for Lesson
With the Virtual Environment activated, use pip to install the necessary requirements.

Expand Down
15 changes: 10 additions & 5 deletions netdevops/aci_ansible/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,28 +12,33 @@ cd netprog_basics/netdevops/aci_ansible
Be sure to complete the [General Workstation Setup](https://github.com/CiscoDevNet/netprog_basics/blob/master/readme_resources/workstation_setup.md) instructions before beginning this lesson.

### Python Environment Setup
It is recommended that this lesson be completed using Python 2.7.
It is recommended that this lesson be completed using Python 3.8. Other versions of Python 3 should also work.

> **Note about Python 2:** Python 2 was [sunset](https://www.python.org/doc/sunset-python-2/) by Python Software Foundation on January 1, 2020. This means that no more updates to Python 2 are being worked on, including security updates. Python 3 is now the recommended version of Python for everyone to use. Most Python developers of software, packages, and scripts have migrated to Python 3 already, however you may find some older scripts and tools that are no longer maintained that only work with Python 2.
>
> You may see/hear references to Python 2 within the videos in this course from before January 2020, however all examples scripts and demos available in the GitHub repo to run have been updated to leverage Python 3.
It is highly recommended to leverage Python Virtual Environments for completing exercises in this course.

*There is no need to create independent venv for each lesson, but you can if you choose. At a minimum you should create 2 venvs, one for Python 2 and one for Python 3.*
*There is no need to create independent venv for each lesson, but you can if you choose.*

Follow these steps to create and activate a venv.

***Note: If you are leveraging a shared venv across all lessons simply activate it.***

```bash
# OS X or Linux
virtualenv venv --python=python2.7
python3 -m venv venv
source venv/bin/activate
```

```bash
# Windows (Explicitly Provide Path to Python2.7 installation)
virtualenv venv --python=c:\Python27\python.exe
# Windows
python -m venv venv
venv/Scripts/activate
```


#### Install Python Requirements for Lesson
With the Virtual Environment activated, use pip to install the necessary requirements.

Expand Down
15 changes: 10 additions & 5 deletions netdevops/ansible_part_1/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,28 +12,33 @@ cd netprog_basics/netdevops/ansible_part_1
Be sure to complete the [General Workstation Setup](https://github.com/CiscoDevNet/netprog_basics/blob/master/readme_resources/workstation_setup.md) instructions before beginning this lesson.

### Python Environment Setup
It is recommended that this lesson be completed using Python 2.7.
It is recommended that this lesson be completed using Python 3.8. Other versions of Python 3 should also work.

> **Note about Python 2:** Python 2 was [sunset](https://www.python.org/doc/sunset-python-2/) by Python Software Foundation on January 1, 2020. This means that no more updates to Python 2 are being worked on, including security updates. Python 3 is now the recommended version of Python for everyone to use. Most Python developers of software, packages, and scripts have migrated to Python 3 already, however you may find some older scripts and tools that are no longer maintained that only work with Python 2.
>
> You may see/hear references to Python 2 within the videos in this course from before January 2020, however all examples scripts and demos available in the GitHub repo to run have been updated to leverage Python 3.
It is highly recommended to leverage Python Virtual Environments for completing exercises in this course.

*There is no need to create independent venv for each lesson, but you can if you choose. At a minimum you should create 2 venvs, one for Python 2 and one for Python 3.*
*There is no need to create independent venv for each lesson, but you can if you choose.*

Follow these steps to create and activate a venv.

***Note: If you are leveraging a shared venv across all lessons simply activate it.***

```bash
# OS X or Linux
virtualenv venv --python=python2.7
python3 -m venv venv
source venv/bin/activate
```

```bash
# Windows (Explicitly Provide Path to Python2.7 installation)
virtualenv venv --python=c:\Python27\python.exe
# Windows
python -m venv venv
venv/Scripts/activate
```


#### Install Python Requirements for Lesson
With the Virtual Environment activated, use pip to install the necessary requirements.

Expand Down
15 changes: 10 additions & 5 deletions netdevops/ansible_part_2/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,28 +12,33 @@ cd netprog_basics/netdevops/ansible_part_2
Be sure to complete the [General Workstation Setup](https://github.com/CiscoDevNet/netprog_basics/blob/master/readme_resources/workstation_setup.md) instructions before beginning this lesson.

### Python Environment Setup
It is recommended that this lesson be completed using Python 2.7.
It is recommended that this lesson be completed using Python 3.8. Other versions of Python 3 should also work.

> **Note about Python 2:** Python 2 was [sunset](https://www.python.org/doc/sunset-python-2/) by Python Software Foundation on January 1, 2020. This means that no more updates to Python 2 are being worked on, including security updates. Python 3 is now the recommended version of Python for everyone to use. Most Python developers of software, packages, and scripts have migrated to Python 3 already, however you may find some older scripts and tools that are no longer maintained that only work with Python 2.
>
> You may see/hear references to Python 2 within the videos in this course from before January 2020, however all examples scripts and demos available in the GitHub repo to run have been updated to leverage Python 3.
It is highly recommended to leverage Python Virtual Environments for completing exercises in this course.

*There is no need to create independent venv for each lesson, but you can if you choose. At a minimum you should create 2 venvs, one for Python 2 and one for Python 3.*
*There is no need to create independent venv for each lesson, but you can if you choose.*

Follow these steps to create and activate a venv.

***Note: If you are leveraging a shared venv across all lessons simply activate it.***

```bash
# OS X or Linux
virtualenv venv --python=python2.7
python3 -m venv venv
source venv/bin/activate
```

```bash
# Windows (Explicitly Provide Path to Python2.7 installation)
virtualenv venv --python=c:\Python27\python.exe
# Windows
python -m venv venv
venv/Scripts/activate
```


#### Install Python Requirements for Lesson
With the Virtual Environment activated, use pip to install the necessary requirements.

Expand Down
15 changes: 10 additions & 5 deletions netdevops/ansible_part_3/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,28 +12,33 @@ cd netprog_basics/netdevops/ansible_part_3
Be sure to complete the [General Workstation Setup](https://github.com/CiscoDevNet/netprog_basics/blob/master/readme_resources/workstation_setup.md) instructions before beginning this lesson.

### Python Environment Setup
It is recommended that this lesson be completed using Python 2.7.
It is recommended that this lesson be completed using Python 3.8. Other versions of Python 3 should also work.

> **Note about Python 2:** Python 2 was [sunset](https://www.python.org/doc/sunset-python-2/) by Python Software Foundation on January 1, 2020. This means that no more updates to Python 2 are being worked on, including security updates. Python 3 is now the recommended version of Python for everyone to use. Most Python developers of software, packages, and scripts have migrated to Python 3 already, however you may find some older scripts and tools that are no longer maintained that only work with Python 2.
>
> You may see/hear references to Python 2 within the videos in this course from before January 2020, however all examples scripts and demos available in the GitHub repo to run have been updated to leverage Python 3.
It is highly recommended to leverage Python Virtual Environments for completing exercises in this course.

*There is no need to create independent venv for each lesson, but you can if you choose. At a minimum you should create 2 venvs, one for Python 2 and one for Python 3.*
*There is no need to create independent venv for each lesson, but you can if you choose.*

Follow these steps to create and activate a venv.

***Note: If you are leveraging a shared venv across all lessons simply activate it.***

```bash
# OS X or Linux
virtualenv venv --python=python2.7
python3 -m venv venv
source venv/bin/activate
```

```bash
# Windows (Explicitly Provide Path to Python2.7 installation)
virtualenv venv --python=c:\Python27\python.exe
# Windows
python -m venv venv
venv/Scripts/activate
```


#### Install Python Requirements for Lesson
With the Virtual Environment activated, use pip to install the necessary requirements.

Expand Down
16 changes: 9 additions & 7 deletions network_controllers/aci/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,28 +26,30 @@ To leverage them, simply `Import` them into your Postman client.
> Reminder: Many network devices leverage self-signed certificates for `https://` APIs. Don't forget to turn **OFF** SSL certificate checking within Postman settings.
### Python Environment Setup
It is recommended that this lesson be completed using Python 3.*.
It is recommended that this lesson be completed using Python 3.8. Other versions of Python 3 should also work.

> Note: In the video Python 2.7 maybe mentioned as required or preferred for ACI Toolkit and Cobra. With the end of life of Python 2.7 these libraries now support, and recommend, Python 3.x.
> **Note about Python 2:** Python 2 was [sunset](https://www.python.org/doc/sunset-python-2/) by Python Software Foundation on January 1, 2020. This means that no more updates to Python 2 are being worked on, including security updates. Python 3 is now the recommended version of Python for everyone to use. Most Python developers of software, packages, and scripts have migrated to Python 3 already, however you may find some older scripts and tools that are no longer maintained that only work with Python 2.
>
> You may see/hear references to Python 2 within the videos in this course from before January 2020, however all examples scripts and demos available in the GitHub repo to run have been updated to leverage Python 3.
It is highly recommended to leverage Python Virtual Environments for completing exercises in this course.

*There is no need to create independent venv for each lesson, but you can if you choose. At a minimum you should create 2 venvs, one for Python 2 and one for Python 3.*
*There is no need to create independent venv for each lesson, but you can if you choose.*

Follow these steps to create and activate a venv.

***Note: If you are leveraging a shared venv across all lessons simply activate it.***

```bash
# OS X or Linux
virtualenv venv --python=python3
python3 -m venv venv
source venv/bin/activate
```

```bash
# Windows (assumes Python 3 is default)
virtualenv venv
venv/Scripts/activate
# Windows
python -m venv venv
venv/Scripts/activate
```

#### Install Python Requirements **NOT** Available on PyPi
Expand Down
18 changes: 11 additions & 7 deletions network_controllers/apicem/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,26 +26,30 @@ To leverage them, simply `Import` them into your Postman client.
> Reminder: Many network devices leverage self-signed certificates for `https://` APIs. Don't forget to turn **OFF** SSL certificate checking within Postman settings.
### Python Environment Setup
It is recommended that this lesson be completed using Python 3.6. A recent version of Python 2.7 or Python 3.5 should also work.
It is recommended that this lesson be completed using Python 3.8. Other versions of Python 3 should also work.

> **Note about Python 2:** Python 2 was [sunset](https://www.python.org/doc/sunset-python-2/) by Python Software Foundation on January 1, 2020. This means that no more updates to Python 2 are being worked on, including security updates. Python 3 is now the recommended version of Python for everyone to use. Most Python developers of software, packages, and scripts have migrated to Python 3 already, however you may find some older scripts and tools that are no longer maintained that only work with Python 2.
>
> You may see/hear references to Python 2 within the videos in this course from before January 2020, however all examples scripts and demos available in the GitHub repo to run have been updated to leverage Python 3.
It is highly recommended to leverage Python Virtual Environments for completing exercises in this course.

*There is no need to create independent venv for each lesson, but you can if you choose. At a minimum you should create 2 venvs, one for Python 2 and one for Python 3.*
*There is no need to create independent venv for each lesson, but you can if you choose.*

Follow these steps to create and activate a venv.

***Note: If you are leveraging a shared venv across all lessons simply activate it.***

```bash
# OS X or Linux
virtualenv venv --python=python3
# OS X or Linux
python3 -m venv venv
source venv/bin/activate
```

```bash
# Windows (assumes Python 3 is default)
virtualenv venv
venv/Scripts/activate
# Windows
python -m venv venv
venv/Scripts/activate
```

#### Install Python Requirements for Lesson
Expand Down
Loading

0 comments on commit 94d2ce5

Please sign in to comment.