Computational Physics

Physics 1

Fall 2020 – Online

Madison College

Computational Physics

These files are for use with the computational component of this class. The various types of files may be identified by their extension (see File Extensions, below).

To learn about how to use the IPython Notebooks (ipynb), see the resource links at the bottom of the page.

Jupyter Notebooks

File Extensions

A file extension is the last few letters after “.” in a computer file name. It identifies the type of file. Files with the following extensions will be found should be familiar to computational physicists:


IPython Notebook – This file must be opened in the Jupyter notebook, where you can edit and execute the code.


Hypertext Markup Language – This is a web page. If you click a link to an html file the browser will render it as a web page. You will not be able to edit its contents.


Python – This file contains raw Python code. It can be imported into a notebook or another Python program.


Markdown – This is text that can be converted to HTML. See more info here. Markdown formatting is also used in the IPy notebooks.


Portable Document Format – A format used for nice presentation of documents. You cannot edit these files without special software.


Comma Separated Values – A simple (text-based) format for spreadsheet data.


Text – This file can be editted by a text editor; it is not recognized as code. Sometimes when saving an ipynb file a .txt extension will be added; the file cannot be read by Jupyter until the .txt extension is removed from the file name.


Portable Network Graphics – An image format suitable for diagrams and plots. Not so good for photographs (for that use .jpg).


Getting Started

Python Language

Last modified: October 29, 2020.