Skip to content

Commit 906d4eb

Browse files
committed
Merge branch 'develop'
2 parents 2d6d2e5 + 6894b30 commit 906d4eb

File tree

4 files changed

+35
-2
lines changed

4 files changed

+35
-2
lines changed

docs/python/img/jupyter-1.png

148 KB
Loading

docs/python/img/jupyter-2.png

54.9 KB
Loading

docs/python/img/jupyter-3.png

150 KB
Loading

docs/python/jupyter.md

Lines changed: 35 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,37 @@
11

2-
# Jupyter notebooks
2+
# Jupyter Lab & Notebooks
33

4-
![](https://upload.wikimedia.org/wikipedia/commons/2/21/OpenGL_Tutorial_TODO.png){width=300x}
4+
If you are working with Python, a great way to develop your code efficiently, especially when performing data analysis or creating POCs, is to use Jupyter notebooks. Here we are showing you how to do this through Jupyter lab, which is a web-based, interactive development environment that includes Jupyter notebooks.
5+
6+
7+
# How to install:
8+
9+
In your terminal/Powershell you can use `pip` to install Jupyter Lab.
10+
11+
```bash
12+
pip install jupyterlab
13+
```
14+
15+
# How to launch:
16+
17+
Then you can launch the application with:
18+
19+
```bash
20+
jupyter lab
21+
```
22+
23+
This will start Jupyter Lab on your browser. On the left panel you can navigate through your files and directories. The right panel is the Launcher; from here you can start a notebook, as shown below.
24+
25+
![Interface](img/jupyter-1.png)
26+
27+
# How to work with a notebook
28+
29+
Within the new notebook, you can write small blocks of code in separate cells and run them individually by pressing `SHIFT+ENTER`. You can move cells around and collapse them, plot graphs and images and you can even add [Markdown](../../docs/writing/markdown.md) cells to document your process.
30+
31+
![Interface](img/jupyter-2.png)
32+
33+
The biggest advantage of the notebook is that you do not need to rerun parts of code that might be time-consuming (eg loading a large TIF file). Once a cell is run, its state is preserved and subsequent cells can be changed and run independently.
34+
35+
As shown below, you can use a exclamation mark to run Bash commands (for example for installing a new python module to your environment) and a question mark to see some information about you functions an variables.
36+
37+
![Tips](img/jupyter-3.png)

0 commit comments

Comments
 (0)