interface.rst 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128
  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>` containing tabs of
  9. documents and activities, a collapsible :ref:`left sidebar <left_sidebar>`, and a :ref:`menu bar <menu_bar>`.
  10. The left sidebar contains a :ref:`file browser <working_with_files>`, the :ref:`list of running kernels
  11. and terminals <running>`, the :ref:`command palette <commands>`, the :ref:`notebook cell tools inspector <notebook>`,
  12. and the :ref:`tabs list <tabs>`.
  13. .. image:: images/interface_jupyterlab.png
  14. .. _menu_bar:
  15. Menu Bar
  16. ~~~~~~~~
  17. The menu bar at the top of JupyterLab has top-level menus that expose
  18. actions available in JupyterLab with their keyboard shortcuts. The
  19. default menus are:
  20. - **File**: actions related to files and directories
  21. - **Edit**: actions related to editing documents and other activities
  22. - **View**: actions that alter the appearance of JupyterLab
  23. - **Run**: actions for running code in different activities such as
  24. notebooks and code consoles
  25. - **Kernel**: actions for managing kernels, which are separate processes
  26. for running code
  27. - **Tabs**: a list of the open documents and activities in the dock panel
  28. - **Settings**: common settings and an advanced settings editor
  29. - **Help**: a list of JupyterLab and kernel help links
  30. :ref:`JupyterLab extensions <user_extensions>` can also create new top-level menus in the menu
  31. bar.
  32. .. _left_sidebar:
  33. Left Sidebar
  34. ~~~~~~~~~~~~
  35. The left sidebar contains a number of commonly-used tabs, such as a file
  36. browser, a list of running kernels and terminals, the command palette,
  37. and a list of tabs in the main area:
  38. .. image:: images/interface_left.png
  39. :align: center
  40. The left sidebar can be collapsed or expanded by clicking on the active
  41. sidebar tab:
  42. [animation]
  43. JupyterLab extensions can add additional panels to the left sidebar.
  44. .. _main_area:
  45. Main Work Area
  46. ~~~~~~~~~~~~~~
  47. The main work area in JupyterLab allows you to arrange documents
  48. (notebooks, text files, etc.) and other activities (terminals, code
  49. consoles, etc.) into panels of tabs that can be resized or subdivided:
  50. [animation]
  51. The work area has a single current activity. The tab for this activity
  52. is marked with a colored top border (blue by default).
  53. .. _tabs:
  54. Tabs and Single-Document Mode
  55. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  56. The Tabs panel in the left sidebar lists the open documents or
  57. activities in the main area:
  58. .. image:: images/interface_tabs.png
  59. :align: center
  60. The same information is also available in the Tabs menu:
  61. .. image:: images/interface_tabs_menu.png
  62. :align: center
  63. It is often useful to focus on a single document or activity without closing
  64. other tabs in the main area. The Single-Document Mode item in the View menu
  65. toggles the view of the main area to show only a single tab at a time:
  66. [animation]
  67. When you leave single-document mode, the original layout of the main
  68. area is restored.
  69. Context Menus
  70. ~~~~~~~~~~~~~
  71. Many parts of JupyterLab, such as notebooks, text files, code consoles,
  72. and tabs have context menus that can be accessed by right-clicking on
  73. the element:
  74. [animation]
  75. The browser’s native context menu can be accessed by holding down
  76. ``Shift`` and right-clicking:
  77. [animation]
  78. .. _shortcuts:
  79. Keyboard Shortcuts
  80. ~~~~~~~~~~~~~~~~~~
  81. As in the classic Notebook, you can navigate the user interface through keyboard
  82. shortcuts. You can find and customize the current list of keyboard shortcuts by
  83. selecting the Advanced Settings Editor item in the Settings menu, then selecting
  84. Keyboard Shortcuts in the settings tab.
  85. [screenshot]
  86. You can also customize the text editor to use vim, emacs, or Sublime Text
  87. keyboard shortcuts by using the Text Editor Key Map submenu in the Settings
  88. menu.