notebook.rst 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  1. .. _notebook:
  2. Notebooks
  3. ---------
  4. Jupyter Notebooks are documents that combine live runnable code with
  5. narrative text (Markdown), equations (LaTeX), images, interactive
  6. visualizations and other rich output:
  7. [screenshot]
  8. **Jupyter Notebook (.ipynb files) are fully supported in JupyterLab.**
  9. Furthermore, the `notebook document
  10. format <http://nbformat.readthedocs.io/en/latest/>`__ used in JupyterLab
  11. is the same as in the classic notebook. Your existing notebooks should
  12. open correctly in JupyterLab. If they don’t, please open an issue on our
  13. `GitHub issues <https://github.com/jupyterlab/jupyterlab/issues>`__
  14. page.
  15. Create a notebook by clicking the ``+`` button in the file browser and
  16. then selecting a kernel in the new Launcher tab:
  17. [animation]
  18. A new file is created with a default name. Rename a file by
  19. right-clicking on its name in the file browser and selecting “Rename”
  20. from the context menu:
  21. [animation]
  22. The user interface for notebooks in JupyterLab closely follows that of
  23. the classic Jupyter Notebook. The keyboard shortcuts of the classic
  24. Notebook continue to work (with command and edit mode). However, a
  25. number of new things are possible with notebooks in JupyterLab.
  26. Drag and drop cells to rearrange your notebook:
  27. [animation]
  28. Drag cells between notebooks to quickly copy content:
  29. [animation]
  30. Create multiple synchronized views of a single notebook:
  31. [animation]
  32. Collapse and expand code and output using the View menu or the blue
  33. collapser button on left of each cell:
  34. [animation]
  35. Enable scrolling for long outputs by right-clicking on a cell and
  36. selecting “Enable Scrolling for Outputs”:
  37. [animation]
  38. Create a new synchronized view of a cell’s output:
  39. [animation]
  40. Tab completion (activated with the ``Tab`` key) now includes additional
  41. information about the types of the matched items:
  42. [animation]
  43. The tooltip (activated with ``Shift Tab``) contains additional
  44. information about objects:
  45. [animation]
  46. You can connect a :ref:`code console <code_console>` to a notebook kernel to have a log of
  47. computations done in the kernel, in the order in which they were done.
  48. The attached code console also provides a place to interactively inspect
  49. kernel state without changing the notebook. Right-click on a notebook
  50. and select “Create Console for Notebook”:
  51. [animation]