Skip to content

Commit

Permalink
how to format notebooks
Browse files Browse the repository at this point in the history
  • Loading branch information
bast committed Jan 27, 2025
1 parent bd60507 commit 6b01baf
Show file tree
Hide file tree
Showing 4 changed files with 27 additions and 1 deletion.
3 changes: 2 additions & 1 deletion content/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ them to own projects**.

- 12:45-13:30 - Working with Notebooks
- Notebooks and version control
- Other tooling
- {doc}`notebooks/tooling`
- {doc}`notebooks/sharing`

- 13:30-14:15 - Other useful tools for Python development
Expand Down Expand Up @@ -128,6 +128,7 @@ documentation
collaboration
dependencies
testing
notebooks/tooling
notebooks/sharing
refactoring-concepts
good-practices
Expand Down
Binary file added content/notebooks/button.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added content/notebooks/packages.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
25 changes: 25 additions & 0 deletions content/notebooks/tooling.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
# Other useful tooling for notebooks


## Code formatting

<https://jupyterlab-code-formatter.readthedocs.io/>


:::{figure} packages.jpg
:alt: Screenshot of three additional packages in environment.yml

We need three additional packages to format code in JupyterLab: `jupyterlab-code-formatter`, `black`, and `isort`.
:::


:::{figure} button.jpg
:alt: Screenshot of the button to format code in JupyterLab

This button will format the code in all cells of the notebook.
:::


:::{instructor-note}
We test it out together on an example notebook.
:::

0 comments on commit 6b01baf

Please sign in to comment.