Python and Jupyter II

You have successfully installed Jupyter with your own virtual environment using Python tools. If that’s not the case, follow the Python and Jupyter installation page instructions.

Otherwise, you are now ready to start using your Jupyter installation to view/edit/create notebooks.

Don’t forget to activate your virtual environment to use Jupyter. It only exists in your virtual environment.

source ~/venvs/.my-venv/bin/activate

Using Jupyter

Since we are now able to open Jupyter notebooks and play with them, let’s do exactly that. I’ve revised a nice tutorial walkthrough that you are to now follow. Within the tutorial is an Exercise to be completed with your own notebook that you will commit to a private homework repository you should create and give me access to view. From prior tutorials this should be straightforward for you now.

For your private homework submission repository use the following format to name your repo: hmwk-phys709-Firstname-LastName

Please follow the Intro tutorial and complete the enclosed Exercise.

You can simply download the intro.ipynb file and open it in Jupyter.

Some browsers will save Jupyter notebooks with an additional .txt extension. If that’s the case for you, simply rename it by removing the .txt extension. Jupyter notebook extensions are .ipynb.

If you want a sneak-peek at the Jupyter notebook tutorial you can open it and have it rendered by nbviewer.


© 2024 Gavin S. Davies. Released under the CC BY-SA license.