interface.rst 5.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165
  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 area:
  41. .. image:: images/interface_left.png
  42. :align: center
  43. :class: jp-screenshot
  44. The left sidebar can be collapsed or expanded by clicking on the active
  45. 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 allows you to arrange documents
  55. (notebooks, text files, etc.) and other activities (terminals, code
  56. consoles, etc.) into panels of tabs that can be resized or subdivided:
  57. .. raw:: html
  58. <div class="jp-youtube-video">
  59. <iframe width="560" height="315" src="https://www.youtube-nocookie.com/embed/Ka8qS7CO1XQ?rel=0&amp;showinfo=0" frameborder="0" allow="autoplay; encrypted-media" allowfullscreen></iframe>
  60. </div>
  61. The work area has a single current activity. The tab for this activity
  62. is marked with a colored top border (blue by default).
  63. .. _tabs:
  64. Tabs and Single-Document Mode
  65. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  66. The Tabs panel in the left sidebar lists the open documents or
  67. activities in the main area:
  68. .. image:: images/interface_tabs.png
  69. :align: center
  70. :class: jp-screenshot
  71. The same information is also available in the Tabs menu:
  72. .. image:: images/interface_tabs_menu.png
  73. :align: center
  74. :class: jp-screenshot
  75. It is often useful to focus on a single document or activity without closing
  76. other tabs in the main area. Single-document mode enable this, while making
  77. it simple to return to your multi-activity layout in the main work area.
  78. Toggle single-document mode using the View menu:
  79. .. raw:: html
  80. <div class="jp-youtube-video">
  81. <iframe width="560" height="315" src="https://www.youtube-nocookie.com/embed/DO7NOenMQC0?rel=0&amp;showinfo=0" frameborder="0" allow="autoplay; encrypted-media" allowfullscreen></iframe>
  82. </div>
  83. When you leave single-document mode, the original layout of the main
  84. area is restored.
  85. Context Menus
  86. ~~~~~~~~~~~~~
  87. Many parts of JupyterLab, such as notebooks, text files, code consoles,
  88. and tabs have context menus that can be accessed by right-clicking on
  89. the element:
  90. .. raw:: html
  91. <div class="jp-youtube-video">
  92. <iframe width="560" height="315" src="https://www.youtube-nocookie.com/embed/y30fs6kg6fc?rel=0&amp;showinfo=0" frameborder="0" allow="autoplay; encrypted-media" allowfullscreen></iframe>
  93. </div>
  94. The browser’s native context menu can be accessed by holding down
  95. ``Shift`` and right-clicking:
  96. .. raw:: html
  97. <div class="jp-youtube-video">
  98. <iframe width="560" height="315" src="https://www.youtube-nocookie.com/embed/XPPWW-7WJ40?rel=0&amp;showinfo=0" frameborder="0" allow="autoplay; encrypted-media" allowfullscreen></iframe>
  99. </div>
  100. .. _shortcuts:
  101. Keyboard Shortcuts
  102. ~~~~~~~~~~~~~~~~~~
  103. As in the classic Notebook, you can navigate the user interface through keyboard
  104. shortcuts. You can find and customize the current list of keyboard shortcuts by
  105. selecting the Advanced Settings Editor item in the Settings menu, then selecting
  106. Keyboard Shortcuts in the Settings tab.
  107. .. raw:: html
  108. <div class="jp-youtube-video">
  109. <iframe src="https://www.youtube-nocookie.com/embed/rhW3kAExCik?rel=0&amp;showinfo=0" frameborder="0" allow="autoplay; encrypted-media" allowfullscreen></iframe>
  110. </div>
  111. You can also customize the text editor to use vim, emacs, or Sublime Text
  112. keyboard maps by using the Text Editor Key Map submenu in the Settings
  113. menu.
  114. .. raw:: html
  115. <div class="jp-youtube-video">
  116. <iframe src="https://www.youtube-nocookie.com/embed/COheO7sA4-U?rel=0&amp;showinfo=0" frameborder="0" allow="autoplay; encrypted-media" allowfullscreen></iframe>
  117. </div>