Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
Download

Jupyter notebook intro_python_in_jupyter/Python in Jupyter Notebook a tutorial.ipynb

40 views
Kernel: Anaconda (Python 3)
To do: get data and plot it add links to other learning materials k

Interactive Python in the Jupyter Notebook

Nathan Lloyd

To be covered:

  • How to use Jupyter

  • Some really basic python programming

  • Some basic data analysis and plotting with pandas and matplotlib

Not to be covered:

What is Jupyter?

  • Jupyter is a notebook environment with a browser interface that can be used for interactive computing in Python and other languages (I haven't tried other languages).

  • From when you open (or restart) a Jupyter notebook, variable assignments, function declarations, etc are stored and updated as you go.

    • A "Notebook server" program needs to be running somewhere. When I'm using it on my laptop, I run it in a terminal, and access it from a browser.

  • Basic usage:

    • Type some code in a cell

    • Hit <shift><enter> to execute the cell

    • The return value or the string representation of the last line of the cell will be output below the code.

Saving

  • The notebook periodically gets saved automatically, but you can also do File -> Save and Checkpoint

  • You can change the name by clicking on the name (I like to do "Make a copy" periodically to explicitly save older versions)

my_name = 'Nathan'
my_name