Running a Python 3 Script in a nanoHUB Jupyter Notebook

By Tanya Faltens

Network for Computational Nanotechnology, Purdue University, West Lafayette, IN

Published on

Abstract

This tutorial will show you how to create and run Python 3 code in a Jupyter notebook, rather than creating and running a Python script.

We are working along with Chapter 1.8 “Writing a program” in the Python for Everybody course.

In this lesson they execute a Python script that prints the string, ‘hello world’. We are going to create a Jupyter notebook in nanoHUB that does the same thing.

Be sure to get the accompanying pdf document in the Supporting Docs tab.

Cite this work

Researchers should cite this work as follows:

  • Tanya Faltens (2020), "Running a Python 3 Script in a nanoHUB Jupyter Notebook," https://nanohub.org/resources/33389.

    BibTex | EndNote

Time

Tags