Jupyter Notebook is a free, open-source web application that allows you to create interactive documents that are called notebooks. Then, you can use these notebooks to create reports, articles and other types of documents. You can also use Jupyter notebooks to run other programs, such as Python and R.
A really useful feature of Jupyter notebook is that you can include in your notebook code and data that come from other sources. You are permitted to include code from different sources, such as Github or from other databases, such as Google Docs. You are also permitted to include data from other websites or databases. You might want to make a list of important dates in the history of your city. You can add these dates to your notebook by using the insert function of your notebook.
Sometimes you may want to delete your notebook. If you have used the system for a very long time and no longer need it or if you are planning to upgrade your operating system. It is also possible that you can delete some cells if you do not need them anymore. If that is the case, you can just do the following:
Esc will put you in control mode. In that mode, navigate around your notebook with arrow keys.
While the system is in command mode:
- It is possible to insert a new cell above the current cell and a new cell below it.
- M changes the cell that is currently displayed to markdown, and Y changes it back to code.
- D + D (pressing the key twice) is necessary in order to delete the current cell.
- Enter will allow you to go from command mode back into editing mode for that cell.
- Then press Shift + Tab to display the docstring (documentation) for the object you have just typed in a code cell. You can press this short cut again and again to cycle through a few modes of documentation.
- A press of Ctrl + Shift + – will split the cell that is currently active, and put it in two places from where your cursor is.
- Esc + F will find and replace all the code, but it will not change the outputs.
- Esc + O toggles cell output.
Select several cells:
- By pressing Shift+J or Shift+Down, you select the next item to sell that is in a downward direction. You can also select the sellers of something that is on the upward side, by using Shift + K or Shift + Up.
- When you have selected cells, you can delete them, copy them, cut and paste them, or even run them in batches. It is useful when you want to move parts of a notebook.
- Shift + M is another way to merge multiple cells.
As any smart user knows, using keyboard shortcuts will save you tons of time. Jupyter stores a list of keyboard shortcuts in the menu at the top. Go to Help > keyboard shortcuts, or press H in command mode to get a list of them. It is worth checking this every time that you upgrade Jupyter, because new shortcuts are added all the time.