| 1 | # pynotebook |
| 2 | |
| 3 | > A LaTeX package providing environments to recreate a Jupyter notebook (raw, markdown, code blocks) — Un package LaTeX proposant des environnements pour recréer un notebook Jupyter (blocs bruts, markdown, code) |
| 4 | |
| 5 | --- |
| 6 | |
| 7 | ## Installation |
| 8 | |
| 9 | The package is available on [CTAN](https://ctan.org/pkg/pynotebook) and can be installed via your LaTeX distribution's package manager. |
| 10 | |
| 11 | ### Via MiKTeX |
| 12 | |
| 13 | - **Graphically**: open the *MiKTeX Console*, go to *Packages*, search for `pynotebook` and click *Install*. |
| 14 | - **Command line**: |
| 15 | ``` |
| 16 | mpm.exe --install pynotebook |
| 17 | ``` |
| 18 | |
| 19 | ### Via TeX Live / tlmgr |
| 20 | |
| 21 | ``` |
| 22 | tlmgr install pynotebook |
| 23 | ``` |
| 24 | |
| 25 | > On Linux, you may need to prefix with `sudo` depending on your installation. |
| 26 | |
| 27 | ### Manual installation |
| 28 | |
| 29 | If you want the latest version directly from this repository: |
| 30 | |
| 31 | 1. Download the [repository](https://github.com/cpierquet/latex-packages/tree/main/pynotebook) (click *Code > Download ZIP*, or clone it). |
| 32 | 2. Place `pynotebook.sty` in a directory where LaTeX can find it, for example: |
| 33 | - **TeX Live / Linux**: `~/texmf/tex/latex/pynotebook/` |
| 34 | - **MiKTeX / Windows**: `C:\Users\<user>\AppData\Roaming\MiKTeX\tex\latex\pynotebook\` |
| 35 | - **macOS (MacTeX)**: `~/Library/texmf/tex/latex/pynotebook/` |
| 36 | 3. Refresh the filename database: |
| 37 | - TeX Live: `mktexlsr` or `texhash` |
| 38 | - MiKTeX: `initexmf --update-fndb` |
| 39 | |
| 40 | --- |
| 41 | |
| 42 | ## Quick start |
| 43 | |
| 44 | ```latex |
| 45 | \usepackage{pynotebook} |
| 46 | ``` |
| 47 | |
| 48 | --- |
| 49 | |
| 50 | ## Author & License |
| 51 | |
| 52 | | | | |
| 53 | |---|---| |
| 54 | | **Author** | Cédric Pierquet | |
| 55 | | **Email** | [email protected] | |
| 56 | | **License** | Released under the [LaTeX Project Public License v1.3c](http://www.latex-project.org/lppl.txt) or later | |