interface.rst 5.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159
  1. .. _interface:
  2. The JupyterLab Interface
  3. ------------------------
  4. JupyterLab provides flexible building blocks for interactive,
  5. exploratory computing. While JupyterLab has many features found in
  6. traditional integrated development environments (IDEs), it remains
  7. focused on interactive, exploratory computing.
  8. The JupyterLab interface consists of a :ref:`main work area <main_area>`
  9. containing tabs of documents and activities, a collapsible :ref:`left sidebar
  10. <left_sidebar>`, and a :ref:`menu bar <menu_bar>`. The left sidebar contains a
  11. :ref:`file browser <working_with_files>`, the :ref:`list of running kernels and
  12. terminals <running>`, the :ref:`command palette <commands>`, the :ref:`notebook
  13. cell tools inspector <notebook>`, and the :ref:`tabs list <tabs>`.
  14. .. image:: images/interface_jupyterlab.png
  15. :align: center
  16. :class: jp-screenshot
  17. .. _menu_bar:
  18. Menu Bar
  19. ~~~~~~~~
  20. The menu bar at the top of JupyterLab has top-level menus that expose
  21. actions available in JupyterLab with their keyboard shortcuts. The
  22. default menus are:
  23. - **File**: actions related to files and directories
  24. - **Edit**: actions related to editing documents and other activities
  25. - **View**: actions that alter the appearance of JupyterLab
  26. - **Run**: actions for running code in different activities such as
  27. notebooks and code consoles
  28. - **Kernel**: actions for managing kernels, which are separate processes
  29. for running code
  30. - **Tabs**: a list of the open documents and activities in the dock panel
  31. - **Settings**: common settings and an advanced settings editor
  32. - **Help**: a list of JupyterLab and kernel help links
  33. :ref:`JupyterLab extensions <user_extensions>` can also create new top-level menus in the menu
  34. bar.
  35. .. _left_sidebar:
  36. Left Sidebar
  37. ~~~~~~~~~~~~
  38. The left sidebar contains a number of commonly-used tabs, such as a file
  39. browser, a list of running kernels and terminals, the command palette,
  40. and a list of tabs in the main work area:
  41. .. image:: images/interface_left.png
  42. :align: center
  43. :class: jp-screenshot
  44. The left sidebar can be collapsed or expanded by selecting "Show Left Area"
  45. in the View menu or by clicking on the active sidebar tab:
  46. .. raw:: html
  47. <div class="jp-youtube-video">
  48. <iframe src="https://www.youtube-nocookie.com/embed/PlJGecfetek?rel=0&amp;showinfo=0" frameborder="0" allow="autoplay; encrypted-media" allowfullscreen></iframe>
  49. </div>
  50. JupyterLab extensions can add additional panels to the left sidebar.
  51. .. _main_area:
  52. Main Work Area
  53. ~~~~~~~~~~~~~~
  54. The main work area in JupyterLab enables you to arrange documents (notebooks,
  55. text files, etc.) and other activities (terminals, code consoles, etc.) into
  56. panels of tabs that can be resized or subdivided. Drag a tab to the center of a
  57. tab panel to move the tab to the panel. Subdivide a tab panel by dragging a tab to
  58. the left, right, top, or bottom of the panel:
  59. .. raw:: html
  60. <div class="jp-youtube-video">
  61. <iframe src="https://www.youtube-nocookie.com/embed/Ka8qS7CO1XQ?rel=0&amp;showinfo=0" frameborder="0" allow="autoplay; encrypted-media" allowfullscreen></iframe>
  62. </div>
  63. The work area has a single current activity. The tab for the current activity is
  64. marked with a colored top border (blue by default).
  65. .. _tabs:
  66. Tabs and Single-Document Mode
  67. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  68. The Tabs panel in the left sidebar lists the open documents or
  69. activities in the main work area:
  70. .. image:: images/interface_tabs.png
  71. :align: center
  72. :class: jp-screenshot
  73. The same information is also available in the Tabs menu:
  74. .. image:: images/interface_tabs_menu.png
  75. :align: center
  76. :class: jp-screenshot
  77. It is often useful to focus on a single document or activity without closing
  78. other tabs in the main work area. Single-document mode enable this, while making
  79. it simple to return to your multi-activity layout in the main work area.
  80. Toggle single-document mode using the View menu:
  81. .. raw:: html
  82. <div class="jp-youtube-video">
  83. <iframe src="https://www.youtube-nocookie.com/embed/DO7NOenMQC0?rel=0&amp;showinfo=0" frameborder="0" allow="autoplay; encrypted-media" allowfullscreen></iframe>
  84. </div>
  85. When you leave single-document mode, the original layout of the main
  86. area is restored.
  87. Context Menus
  88. ~~~~~~~~~~~~~
  89. Many parts of JupyterLab, such as notebooks, text files, code consoles,
  90. and tabs, have context menus that can be accessed by right-clicking on
  91. the element:
  92. .. raw:: html
  93. <div class="jp-youtube-video">
  94. <iframe src="https://www.youtube-nocookie.com/embed/y30fs6kg6fc?rel=0&amp;showinfo=0" frameborder="0" allow="autoplay; encrypted-media" allowfullscreen></iframe>
  95. </div>
  96. The browser’s native context menu can be accessed by holding down
  97. ``Shift`` and right-clicking:
  98. .. raw:: html
  99. <div class="jp-youtube-video">
  100. <iframe src="https://www.youtube-nocookie.com/embed/XPPWW-7WJ40?rel=0&amp;showinfo=0" frameborder="0" allow="autoplay; encrypted-media" allowfullscreen></iframe>
  101. </div>
  102. .. _shortcuts:
  103. Keyboard Shortcuts
  104. ~~~~~~~~~~~~~~~~~~
  105. As in the classic Notebook, you can navigate the user interface through keyboard
  106. shortcuts. You can find and customize the current list of keyboard shortcuts by
  107. selecting the Advanced Settings Editor item in the Settings menu, then selecting
  108. Keyboard Shortcuts in the Settings tab.
  109. .. image:: images/interface_keyboard_shortcuts.png
  110. :align: center
  111. :class: jp-screenshot
  112. You can also customize the text editor to use vim, emacs, or Sublime Text
  113. keyboard maps by using the Text Editor Key Map submenu in the Settings
  114. menu.