Skip to Main Content
Hours & Login Menu
  • Hours
  • Login
    • Library Search Login
    • Interlibrary Loan
Dartmouth Libraries Dartmouth Libraries

Global dropdown menu

    • Borrow and Request
      • Who Can Borrow
      • What You Can Borrow
      • Loan Periods and Renewals
      • Borrow from Other Libraries
      • Request Materials
      • All Borrow and Request
    • Collections
      • Digital Collections
      • Media Collections
      • Oral Histories
      • Collections Care
      • Donate
      • All Collections
    • Course Reserves
      • Find Course Reserves
      • Create or Add Course Reserves
      • All Course Reserves
    • Off-Campus Access
    • Records Management
      • Retention and Disposition
      • Confidential Monthly Destruction
      • Electronic Records
      • Physical Records
      • Retention Schedules
      • All Records Management
    • Search and Browse
      • Library Search
      • Databases
      • Journals
      • Research Guides
      • Maps and Atlases
      • Newspapers
      • Dartmouth Digital Commons
      • Music Scores
      • BorrowDirect
      • Archives and Manuscripts
      • All Search and Browse
    • Design and Produce
      • Audio and Video
      • Book Arts
      • Digital Art and Design
      • Equipment and Hardware
      • Software
      • All Design and Produce
    • Data Services
      • Research Data Management
      • Data Analysis and Visualization
      • Data Repositories
      • Data Workshops
      • Datasets at Dartmouth
      • All Data Services
    • Digital Scholarship
    • Publishing and Copyright
      • Copyright
      • Open Access
      • Publisher Agreements
      • Publishing for Faculty
      • Publishing for Students
      • All Publishing and Copyright
    • Research Help
    • Teaching and Workshops
    • Print, Copy, Scan
    • Locations
      • Baker-Berry Library
      • Book Arts Workshop
      • Evans Map Room
      • Feldberg Business and Engineering Library
      • Health Sciences and Biomedical Libraries
      • Jones Media Center
      • Library Collections and Services Facility
      • Rauner Special Collections Library
      • Sherman Art Library
      • All Locations
    • Accessibility
    • Events
    • Exhibits
    • Hours
    • Study Spaces
    • About Dartmouth Libraries
      • Council on the Libraries
      • Diversity, Equity, and Inclusion
      • Friends of the Libraries
      • Library Departments
      • Strategic Framework
      • Staff Directory
      • All About Dartmouth Libraries
    • Employment
      • Staff and Professional Positions
      • Student Positions
      • Fellowships
      • All Employment
    • News and Highlights
    • Policies and Guidelines
    • Programs and Awards
      • Alumni Memorial Book Fund Program
      • Librarians Active Learning Institute
      • MAD Research Video Contest
      • Staff Awards
      • All Programs and Awards
    • Contact Us
    • We're Here to Help
      • Students
      • Faculty
      • Alums
      • Staff
      • Visiting Researchers and Community
      • All We're Here to Help
    • Find a Specialist
      • Subject Librarians
      • Audio and Video Production
      • Preservation and Emergency Preparedness
      • Publishing and Copyright
      • Records Management
      • Research Data Services
      • Systematic Review
      • All Find a Specialist
    • Ask Us
  • Hours
    • Library Search Login
    • Interlibrary Loan

Global dropdown menu

    • Borrow and Request
      • Who Can Borrow
      • What Can You Borrow
      • Loan Periods and Renewals
      • Borrow from Other Libraries
      • Request Materials
    • Collections
      • Digital Collections
      • Media Collections
      • Oral Histories
      • Collections Care
      • Donate
    • Course Reserves
      • Find Course Reserves
      • Create or Add Course Reserves
    • Off-Campus Access
    • Records Management
      • Retention and Disposition
      • Confidential Monthly Destruction
      • Electronic Records
      • Physical Records
      • Retention Schedules
    • Search and Browse
      • Library Search
      • Databases
      • Journals
      • Research Guides
      • Maps and Atlases
      • Newspapers
      • Dartmouth Digital Commons
      • Music Scores
      • BorrowDirect
      • Archives and Manuscripts
    • Design and Produce
      • Audio and Video
      • Book Arts
      • Design and Digital Art
      • Equipment and Hardware
      • Software
    • Data Services
      • Research Data Management
      • Data Analysis and Visualization
      • Data Repositories
      • Data Workshops
      • Datasets at Dartmouth
    • Digital Scholarship
    • Publishing and Copyright
      • Copyright
      • Open Access
      • Publisher Agreements
      • Publishing for Faculty
      • Publishing for Students
    • Research Help
    • Teaching and Workshops
    • Print, Copy, Scan
    • Locations
      • Baker-Berry Library
      • Book Arts Workshop
      • Evans Map Room
      • Feldberg Business and Engineering Library
      • Health Sciences and Biomedical Libraries
      • Jones Media Center
      • Library Collections and Services Facility
      • Rauner Special Collections Library
      • Sherman Art Library
    • Accessibility
    • Events
    • Exhibits
    • Hours
    • Study Spaces
    • About Dartmouth Libraries
      • Council on the Libraries
      • Diversity, Equity, and Inclusion
      • Friends of the Libraries
      • Library Departments
      • Strategic Framework
      • Staff Directory
    • Employment
      • Staff and Professional Positions
      • Student Positions
      • Fellowships
    • News and Highlights
    • Policies
    • Programs and Awards
      • Alumni Memorial Book Fund Program
      • Librarians Active Learning Institute
      • MAD Research Video Contest
      • Staff Awards
    • Contact Us
    • We're Here to Help
      • Students
      • Faculty
      • Alums
      • Staff
      • Visiting Researchers and Community
    • Find a Specialist
      • Subject Librarians
      • Audio and Video Production
      • Preservation and Emergency Preparedness
      • Publishing and Copyright
      • Records Management
      • Research Data Services
      • Systematic Review
    • Ask Us
  • Hours
    • Library Search Login
    • Interlibrary Loan
  1. Dartmouth Libraries
  2. Research Guides
  3. Programming with Python
  4. Jupyter Notebooks and Jupyter Hub

Programming with Python

An introduction to programming with Python. Includes how to get started with Python, coding in Python with Jupyter Notebooks, and various links where you can learn more.
  • Home
  • Why code? Why Python?
  • Python Setup - Getting Started
  • Jupyter Notebooks and Jupyter Hub

What are Jupyter Notebooks?

Working with Jupyter* Notebooks allows you to mix code, documentations (instructions, explanations, tutorials), visualizations, and equations all in the same document. For this reason, they are frequently used in instruction.

There are two basic units of a Jupyter Notebook: code cells and text cells.

In code cells, you can write and run a chunk of code and Jupyter will print any output or plots directly below the cell. This output includes plots and other visualizations.

Meanwhile, text cells - often also called markdown cells - are intended to be read by other humans. In these text cells, teachers can instruct their students how the following code works and explain what it does, researchers can document their workflow and thought processes for their collaborators, and anyone can record notes for themselves, explaining what they are trying to accomplish in the code cell that follows.

Text cell are also called markdown cells because they allow the user to edit the style of the text using a simplified syntax known as Markdown. Some example of Markdown syntax includes:

  • *italics*  (that is, all text between "*" are rendered as italics)
  • **bold**
  • # Header 1
  • ## Header 2

For more explanation, see the Jupyter Notebook documentation for Markdown Cells.

* Its name comes from the three core programming languages supported by Jupyter: Julia, Python and R. However, Jupyter now supports over 40 languages.

How to work with Jupyter Notebooks on Dartmouth's Jupyter Hub

Some workshops offered by Dartmouth's Reproducible Research team as well as some classes offered by Dartmouth instructors teach with Jupyter Notebooks stored on Dartmouth's Jupyter Hub.

JupyterHub is a platform for sharing and using Jupyter notebooks on a remote serve. Our version is only accessible to members of our community with a Dartmouth login.

For participants in Dartmouth workshops and classes or for members of our community who want to use our notebooks as standalone, self-guided instructional materials: you can access course notebooks on Dartmouth's Jupyter Hub by following instructions listed on our JHUB research guide.

Students of Python / programming from outside our community may still find and download many of our materials from our Gitlab repository.

Using Jupyter Notebooks: Tips & Tricks

Adding cells: ESC-A (to add above) or ESC-B (to add below)

Modifying cells: ESC-M (to switch cell to markdown), ESC-Y (to switch to code cell)

Deleting cells: ESC-D-D (hit D twice while holding down escape)

Markdown Syntax

Running Code: to run a cell, place your cursor in it and click the triangular "play" button or hit CTRL-ENTER

Magic Commands:

    %who - to output all variables stored in memory

    click here for a list of other magic commands

 

  • << Previous: Python Setup - Getting Started
  • Last Updated: Nov 20, 2024 10:45 AM
  • URL: https://researchguides.dartmouth.edu/c.php?g=1313588
  • Print Page
Login to LibApps
Report a problem

Dartmouth Libraries

  • Baker-Berry Library
    • Book Arts Workshop
    • Evans Map Room
    • Jones Media Center
  • Health Sciences and Biomedical Libraries
  • Feldberg Business & Engineering Library
  • Rauner Special Collections Library
  • Records Management
  • Sherman Art Library

About Us

  • Staff Directory
  • Subject Librarians
  • Library Departments
  • Policies
  • Employment
  • Accessibility
  • Federal Depository Library

Contact Us

  • 25 North Main Street
    Hanover, NH, USA 03755
  • Phone: 603-646-2567
  • Contact Us

Give Us Feedback

Dartmouth Libraries

Footer copyright

  • Dartmouth College
  • Copyright © 2025 Trustees of Dartmouth College
  • Facebook
  • Instagram
  • YouTube
Privacy Policy