Steps to run Jupyter notebook in PyCharm: Install Jupyter plug-in Create or open Jupyter notebook Open Jupyter console Select and press Shift Enter or click "Run" Run code block Optional: Configure inline mode (in editing Display the output directly in the browser)
Running Jupyter in PyCharm
Running Jupyter notebooks in PyCharm is very simple. You can follow the steps below:
1. Install the Jupyter plug-in
- Open PyCharm, click "File" -> "Settings" (for Windows systems ) or "PyCharm" -> "Preferences" (for Mac).
- Enter "Jupyter" in the search bar and click "Install".
2. Create or open a Jupyter notebook
- Click "Tools" -> "Jupyter" -> "New Notebook" to create one New notebook, or click "Open" to open an existing notebook.
3. Open the Jupyter console
- The Jupyter console will automatically open at the bottom of PyCharm.
4. Run a code block
- To run a code block, just select it and press
Shift
Enter
or click the "Run" button below the code block in the Jupyter console.
5. Optional: Configure inline mode
- If you want to display Jupyter output directly in the editor, you can click Jupyter Console "Toggle Inline Mode" button in the upper right corner.
Additional Tips:
- You can create new cells via the "New" button in the upper right corner of the Jupyter console.
- You can drag the cell or use the shortcut key
Ctrl
[↑/↓]
(for Windows systems) or Cmd
[↑/↓]
(For Mac system) Rearrange cells.
- To stop the Jupyter kernel, click the "Stop" button in the upper right corner of the Jupyter console.
The above is the detailed content of How to run jupyter in pycharm. For more information, please follow other related articles on the PHP Chinese website!
Statement:The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn