Skip to content

Commit c0d2ee3

Browse files
committed
Adds how to use and configuration for jupytext
1 parent 4ec425c commit c0d2ee3

File tree

3 files changed

+26
-2
lines changed

3 files changed

+26
-2
lines changed

.gitignore

Lines changed: 22 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,32 @@ workflow/
77
vendor/
88
.sconsign.dblite
99
html/index.html
10-
pdf
10+
*pdf
1111
*.pyc
12+
*.ipynb
1213
*.nbconvert.ipynb
1314
*.swp
15+
*.html
16+
*.mp4
1417
a.out
18+
ch00*/learning_git
19+
ch00*/somefile.md
20+
ch01*/fourteen.py
21+
ch01*/draw*
22+
ch02*/my*
23+
ch02*/maze*
24+
ch02*/*csv
25+
ch02*/*png
26+
ch02*/greengraph
27+
ch03*/DiffusionExample
28+
ch03*/commands
29+
ch03*/diffusion
30+
ch03*/saskatchewan
31+
ch03*/solutions*
32+
ch04*/greetings*
33+
ch04*/maze*
34+
ch08*/*png
35+
ch98*/*png
1536
html/reveal/.DS_Store
1637
html/reveal/assets/night-ucl-overlay.css
1738
html/reveal/assets/solarized-ucl-overlay.css

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ You are required to bring your own laptop to the course as the classrooms we are
2929

3030
# Contributing to this repository
3131

32-
This repository contains the course notes as jupyter notebooks. This makes it a bit difficult to contribute and to review contributions. Please, only include changes in the cells modified and not other metadata that changes when running them.
32+
This repository contains the course notes as Jupyter notebooks converted into `py:percent` format. This allows to edit the files as plain text as well as jupyter notebooks. To edit them as jupyter notebooks you'll need to have installed jupytext and open the `ipynb.py` files as notebooks via right-click and select "open with" and "notebook" on the Jupyter file browser.
3333

3434
⚠ Do not run `make` locally on your computer! ⚠
3535

pyproject.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[tool.jupytext]
2+
formats = "ipynb,py:percent"
3+
notebook_metadata_filter="kernelspec,jupytext,jekyll"

0 commit comments

Comments
 (0)