documents_kernels.rst 946 B

1234567891011121314151617181920212223242526272829
  1. .. _kernel-backed-documents:
  2. Documents and kernels
  3. ~~~~~~~~~~~~~~~~~~~~~
  4. In the Jupyter architecture, kernels are separate processes started by
  5. the server that run your code in different programming languages and
  6. environments. JupyterLab allows you to connect any open text file to a
  7. code console and kernel. This means you can easily run code from the
  8. text file in the kernel interactively.
  9. Right-click on a document and select “Create Console for Editor”:
  10. [animation]
  11. Once the code console is open, send a single line of code or select a
  12. block of code and send it to the code console by hitting
  13. ``Shift Enter``:
  14. [animation]
  15. In a Markdown document, ``Shift Enter`` will automatically detect if the
  16. cursor is within a code block, and run the entire block if there is no
  17. selection:
  18. [animation]
  19. *Any* text file (Markdown, Python, R, LaTeX, C++, etc.) in a text file
  20. editor can be connected to a code console and kernel in this manner.