terminal.rst 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. .. _terminal:
  2. Terminals
  3. ==========
  4. JupyterLab terminals provide full support for system shells (bash, tsch,
  5. etc.) on Mac/Linux and PowerShell on Windows. You can run anything in
  6. your system shell with a terminal, including programs such as vim or
  7. emacs. The terminals run on the system where the Jupyter server is
  8. running, with the privileges of your user. Thus, if JupyterLab is
  9. installed on your local machine, the JupyterLab terminals will run
  10. there.
  11. .. image:: images/terminal_layout.png
  12. :align: center
  13. :class: jp-screenshot
  14. .. _open-terminal:
  15. To open a new terminal, click the ``+`` button in the file browser and
  16. select the terminal in the new Launcher tab:
  17. .. raw:: html
  18. <div class="jp-youtube-video">
  19. <iframe src="https://www.youtube-nocookie.com/embed/ynMjz1tiq9o?rel=0&amp;showinfo=0" frameborder="0" allow="autoplay; encrypted-media" allowfullscreen></iframe>
  20. </div>
  21. .. _close-terminal:
  22. Closing a terminal tab will leave it running on the server, but you can
  23. re-open it using the Running tab in the left sidebar:
  24. .. raw:: html
  25. <div class="jp-youtube-video">
  26. <iframe src="https://www.youtube-nocookie.com/embed/gDM5lwU6Dmo?rel=0&amp;showinfo=0" frameborder="0" allow="autoplay; encrypted-media" allowfullscreen></iframe>
  27. </div>
  28. .. _Copy/Paste:
  29. Copy/Paste
  30. ----------
  31. For macOS users, ``Cmd+C`` and ``Cmd+V`` work as usual.
  32. For Windows users using ``PowerShell``, ``Ctrl+Insert`` and ``Shift+Insert`` work as usual.
  33. To use the native browser Copy/Paste menu, hold ``Shift`` and right click to bring up the
  34. context menu (note: this may not work in all browsers).
  35. For non-macOS users, JupyterLab will interpret ``Ctrl+C`` as a copy if there is text selected.
  36. In addition, ``Ctrl+V`` will be interpreted as a paste command unless the ``pasteWithCtrlV``
  37. setting is disabled. One may want to disable ``pasteWithCtrlV`` if the shortcut is needed
  38. for something else such as the vi editor.
  39. For anyone using a \*nix shell, the default ``Ctrl+Shift+C`` conflicts with the default
  40. shortcut for toggling the command palette (``apputils:activate-command-palette``).
  41. If desired, that shortcut can be changed by editing the keyboard shortcuts in settings.
  42. Using ``Ctrl+Shift+V`` for paste works as usual.