Get started Jupyter Notebook

Jupyter Notebook is a feature that allows you to create web pages (documents) that contain Python code.

Python code is properly executed as Python code rather than simple text, so you can save the executable code and its results together. What's more, it's a perfect tool for publishing / sharing commentary with rich decorations on web pages.

nbviewer is a site where you can refer to the Jupyter Notebook posted on Github / Gist, and you can see how it will look like.

There is no way not to use this, so I will explain how to use it.

Installation

Installing Jupyter Notebook

pip install jupyter

After the installation, the following command will start the Jupyter Notebook server and allow you to create documents.

jupyter notebook

In addition, when handling with a calculation library such as Numpy, I think that it is better to use Anaconda or Miniconda (especially in the case of Windows). In my environment, I set it up using conda from Miniconda.

Basically, you will be working in the folder where you ran jupyter notebook, so start it in the directory where you want to save the files.

Create Notebook

When you start it, you will see the following screen. Let's create a file from the New Notebook (choose Python 3).

image

Jupyter Notebook builds documents in units called Cell. There are types such as Python code and Markdown text in this Cell, so select the appropriate one and create a document.

image

By pressing the execute button, the Python code will be executed and Markdown will be displayed.

image

When you save it, it will be saved in the ʻipynb` format. After that, it will be in the form of creating more and more documents. You can share the created Book with nbviewer, but in the case of GitHub, it will be displayed as it is.

With this, it will be possible to share analysis methods etc. with a Python code base that can be executed and with explanations, so I think that it will be very useful for sharing know-how.

Recommended Posts

Get started Jupyter Notebook
Jupyter Notebook memo
Introducing Jupyter Notebook
Powerful Jupyter Notebook
Jupyter notebook password
Jupyter Notebook memo
Markdown to get Jupyter notebook results to Qiita
[Cloud102] # 1 Let's get started with Python (Part 2 Jupyter Notebook Construction AWS Edition)
3 Jupyter notebook (Python) tricks
Get started with MicroPython
Get started with Mezzanine
[Cloud103] # 3 Jupyter Notebook again
[Cloud102] # 1 Let's get started with Python (Part 3 Jupyter Notebook Construction GCP Cloud Shell Edition)
Shortcut key for Jupyter notebook
Get started with Django! ~ Tutorial ⑤ ~
Introduced Jupyter Notebook to CentOS 7
Using Graphviz with Jupyter Notebook
Display HTML in Jupyter notebook
Get started with influxDB + Grafana
Use pip with Jupyter Notebook
Multiprocessing error in Jupyter Notebook
Try using Jupyter Notebook dynamically
Get started with Django! ~ Tutorial ④ ~
[Super Basics] About jupyter Notebook
High charts on Jupyter notebook
View PDF on Jupyter Notebook
Use Cython with Jupyter Notebook
homebrew, pyenv, anaconda, Jupyter Notebook
Play with Jupyter Notebook (IPython Notebook)
Get started with Django! ~ Tutorial ⑥ ~
[Complete version] Jupyter Notebook shortcut
Get started with Python! ~ ② Grammar ~
IfcOpenShell python bindings get started
Run Jupyter Notebook on windows
How to use Jupyter Notebook
python3.8 venv environment jupyter notebook
Browser does not open automatically when jupyter notebook is started
Allow external connections with jupyter notebook
Formatting with autopep8 on Jupyter notebook
Get started with Python! ~ ① Environment construction ~
Snippet settings for python jupyter notebook
Jupyter Notebook essential for software development
Link to get started with python
Python memo Anaconda x Jupyter Notebook
Post a Jupyter Notebook as a blog post
Visualize decision trees with jupyter notebook
Make a sound with Jupyter notebook
Jupyter Notebook Magic Command Personal Summary
Get started with MicroPython (on macOS)
Paste Jupyter Notebook document into Wordpress
Generate Jupyter notebook ".ipynb" in Python
Simply view the Jupyter notebook file
How to get started with Scrapy
How to get started with Python
Run azure ML on jupyter notebook
Jupyter Notebook: 4 banal tips and tricks
How to get started with Django
[MEMO] [Development environment construction] Jupyter Notebook
Use markdown with jupyter notebook (with shortcut)
Add more kernels with Jupyter Notebook
View graphs inline in Jupyter Notebook