How to use Jupyter notebook [Super Basic]

Super basics of Jupyter notebook

It is a basic explanation of Jupyter notebook. The usage is very rough, so the content is for those who are new to it. Therefore, I haven't written anything particularly advanced. Please be careful.

Screen immediately after starting Jupyter notebook

Overview

image.png

  1. Upload: You can upload a new file here.
  2. New: Create files (jupyter notebook format, etc.) and folders.
  3. Update: Update in this directory (folder)
  4. File name: Click this file name to open it in jupyter notebook format
  5. □: ☑︎ can be entered to select a file. You can then select delete / duplicate / edit.

File creation

When you press New, the following display will appear. Click Python3 to create a Jupyter Notebook format file. image.png

Editing / deleting files, etc.

You can select a file by entering ☑︎. After that, the following display will be displayed, and you can duplicate, delete, edit, etc. image.png

Program execution with Jupyter notebook

Immediately after startup

image.png Immediately after startup, it is in the above state.

Fill in the cell

image.png In []: You can enter the program in the horizontal part (cell).

Program execution

image.png You can run it by clicking "Run" above or by Shift + Enter. And a new cell is created (when the next cell already exists, no new cell is created)

Jupyter Notebook Toolbar

image.png

  1. Save: Save. Can also be saved with Ctrl + s
  2. You can add a new cell. Added below the selected cell
  3. Delete the selected cell.
  4. You can copy the selected cell
  5. Paste the copied cell
  6. Move the selected cell down one
  7. Move the selected cell up one
  8. Execute the cell. You can also use Shift + Enter.
  9. Stop the running cell code
  10. Reset the cell. All saved variables etc. are reset
  11. Rerun all cells from scratch
  12. You can select code, comment, etc. for the selected cell.
  13. You can check the commands of Jupyter notebook. There are many useful ones.

Finally

This page only explains the basic usage, so if you want to use it more conveniently or know how to install it, please refer to the following site.

Recommended reference site Jupyter notebook Shortcut Description: https://qiita.com/forusufia/items/bea3f6fd6160cd2f5843

Summary of shortcut keys for Jupyter Notebook for Python beginners: https://tonari-it.com/python-jupyter-notebook-shortcut-key/

Explanation from the installation of Jupyter Notebook: https://techacademy.jp/magazine/17430

Recommended Posts

How to use Jupyter notebook [Super Basic]
How to use Jupyter Notebook
How to use jupyter notebook with ABCI
Jupyter Notebook Basics of how to use
Easy to use Jupyter notebook (Python3.5)
How to execute commands in jupyter notebook
How to use jupyter notebook without polluting your environment with Docker
How to use xml.etree.ElementTree
How to use Python-shell
How to use tf.data
How to use virtualenv
How to use image-match
How to use shogun
How to use Pandas 2
How to use Virtualenv
How to use numpy.vectorize
How to use pytest_report_header
How to use partial
How to use Bio.Phylo
How to use SymPy
How to use x-means
How to use WikiExtractor.py
How to use IPython
How to use virtualenv
How to use Matplotlib
How to use iptables
How to use numpy
How to use venv
How to use dictionary {}
How to use Pyenv
How to use list []
How to use python-kabusapi
How to use OptParse
How to use return
How to use pyenv-virtualenv
How to use Go.mod
How to use imutils
How to use import
How to debug with Jupyter or iPython Notebook
Jupyter Notebook Settings-How to use (EC2 Amazon Linux 2)
[wxpython] How to use wx.lib.plot basic & time axis
How to use Qt Designer
[IPython] How to Share IPython Notebook
How to use search sorted
[gensim] How to use Doc2Vec
python3: How to use bottle (2)
Understand how to use django-filter
How to use the generator
Beginners! Basic Linux commands and how to use them!
Use pip with Jupyter Notebook
[Python] How to use list 1
How to change Jupyter layout
How to use FastAPI ③ OpenAPI
[Super Basics] About jupyter Notebook
How to use Python argparse
How to use Pandas Rolling
[Note] How to use virtualenv
Use Cython with Jupyter Notebook
How to use redis-py Dictionaries
Python: How to use pydub
[Go] How to use "... (3 periods)"