try it out!
To try out the Python programs presented here
using a Jupyter webserver hosted by Authorea, click the
</> Code
button found to the left of many of the figures in this guide. This will reveal the
.ipynb
Jupyter notebook (and associated data files) containing the Python code used to generate that figure. Clicking on the notebook file name will launch the notebook in a new tab or window within your web browser . The notebook can then be run as usual. This will work for all but the examples using the aptly named Python packages
Pint and
Uncertainties for numerical calculations using units and/or uncertainties, as those packages are not currently available on the Authorea Jupyter webserver (but maybe someday?).
As with a Mathematica style notebook, clicking on a 'cell' and hitting SHIFT-ENTER will execute the cell and advance to the next one. Alternatively, make modifications to the notebook (for example, adjust a smoothing parameter) then Select
Run All
from the
Cell
Menu or
Restart & Run All
from the
Kernel
Menu. For additional help, see the
online interactive tutorial on how to run Python inside Jupyter (formerly iPython) notebooks.
Many schools host and configure their own Jupyter webservers for Python programming. Usually, you need to contact the course instructor for an account. For example, Smith College physics students can upload and run any of the Jupyter notebooks included in this guide on the webserver
https://jove.smith.edu. (The https is required). This has all the packages used here preinstalled.
Navigation Tip: For a handy table of contents, select Table of Contents from the Document ▾ pull down menu (upper left of this page). Clicking on an item in the table of contents will take you to that section.