Jupyter Notebook Cheat Sheet: A Beginner’s Guide to Jupyter Notebook
Jupyter Notebooks are a powerful way to write and iterate on your Python code for data analysis. Jupyter Notebook is built off of IPython and the Kernel runs the computations and communicates with the Jupyter Notebook front-end interface. This Jupyter Notebook Cheat Sheet will help you find your way around the well-known Notebook App, a subproject of Project Jupyter.
Jupyter Notebook Cheat Sheet
Jupyter Notebook is an open-source web application that allows you to create and share documents that contain live code, equations, visualizations and narrative text. It is used for data cleaning and transformation, numerical simulation, statistical modeling, data visualization, machine learning, and much more.
This Jupyter Notebook Cheat Sheet is a guide to the Toolbar and the keyboard shortcuts used in Jupyter Notebook.
Saving/Loading Notebooks
Let’s begin with the Saving or Loading of Jupyter Notebook
- Create new Notebook
- Open an existing Notebook
- Make a Copy of the Current Notebook
- Save current Notebook
- Rename current Notebook
- Save current Notebook and record Checkpoint
- Revert Notebook to a previous checkpoint
- Preview of the printed Notebook
- Download Notebook as-
- IPython Notebook
- Python
- HTML
- Markdown
10. Close Notebook & stop running scripts
Keyboard Shortcuts
The following are the most used keyboard shortcuts for a Jupyter Notebook running the Python Kernel. This list changes frequently. Check help->keyboard shortcuts in your notebook for the latest shortcuts
Edit Cells
- Cut the selected Cells to clipboard
- Copy cells from clipboard to current position
- Paste cells from clipboard above current cell
- Paste cells from clipboard below current cell
- Paste cells from clipboard on top of current cell
- Delete Cells
- Revert ‘Delete cells’ invocation
- Split up a cell from the current position
- Merge current cell with the one above
- Merge current cell with the one below
- Move current cell up
- Move current cell down
13. Adjust metadata underlying the current notebook
14. Find and replace in selected cells
15. Remove cell attachments
16. Copy attachments of current cell
17. Paste attachments of current cell
18. Insert image in selected cells
View Cells
- Toggle display of Jupyter logo and filename
- Toggle display of toolbar
- Toggle line numbers in cells
- Toggle display of cell action icons:
- None
- Edit metadata
- Raw cell format
- Slideshow
- Attachments
- Tags
Insert Cells
- Add new cell above the current one
- Add new cell below the current one
Execute Cells
- Run selected cells
- Run current cells down and create a new one below
- Run current cells down and create a new one above
- Run all cells
- Run all cells above the current cell
- Run all cells below the current cell
- Change the cell type of current cell
- Toggle, toggle scrolling and clear current outputs
- Toggle, toggle scrolling and clear all output
Magic Commands
Here are some of the commonly used Magic commands in Jupyter Notebook.
Working with Different Programming Languages
Kernels provide computation and communication with front-end interfaces like the notebooks. Installing Jupyter Notebook will automatically install the IPython kernel.
- Interrupt kernel
- Restart kernel
- Interrupt kernel & clear all output
- Restart kernel & run all cells
- Connect back to a remote notebook
- Restart kernel & run all cells
- Run other installed kernels
Widgets
- Save notebook with interactive widget
- Clear notebook with interactive widget
- Download serialized state of all widget models in use
- Embed current widgets
Help
- Walk through a UI tour
- List of built-in keyboard shortcuts
- Edit the built-in keyboard shortcuts
- Notebook help topics
- Description of markdown available in notebook
- Python help topics
- IPython help topics
- NumPy help topics
- SciPy help topics
- Matplotlib help topics
- SymPy help topics
- Pandas help topics
- About Jupyter Notebook
Download Jupyter Notebook Cheat Sheet for Python
Download Jupyter Notebook Cheat Sheet for Python Edureka
If you wish to check out more articles on the market’s most trending technologies like Artificial Intelligence, DevOps, Ethical Hacking, then you can refer to Edureka’s official site.
Do look out for other articles in this series which will explain the various other aspects of Deep Learning.
1. Artificial Intelligence Tutorial
3. Object Detection in TensorFlow
5. Perceptron learning Algorithm
8. Convolutional Neural Networks
11. Restricted Boltzmann Machine Tutorial
15. Artificial Intelligence Applications
16. TensorFlow Image Classification
17. How to Become an Artificial Intelligence Engineer?
18. Q Learning
21. Artificial Intelligence Algorithms
Originally published at https://www.edureka.co.