Skip to content

Commit

Permalink
chore(docs): remove specific kernel (#54)
Browse files Browse the repository at this point in the history
Seems like `python3` will automatically use the current virtual environment.
  • Loading branch information
jeertmans authored Feb 25, 2024
1 parent 224bcaf commit bd65b94
Show file tree
Hide file tree
Showing 9 changed files with 13 additions and 30 deletions.
2 changes: 0 additions & 2 deletions .readthedocs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,6 @@ build:
jobs:
post_system_dependencies:
- nohup Xvfb $DISPLAY -screen 0 1400x900x24 -dpi 96 +extension RANDR +render &
post_install:
- ipython kernel install --name "DiffeRT" --user
sphinx:
builder: dirhtml
configuration: docs/source/conf.py
Expand Down
16 changes: 1 addition & 15 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,21 +55,7 @@ pdm install

### Documentation

To generate the documentation, you first need to install an IPython kernel named
`DiffeRT`:

```bash
pdm run ipython kernel install --user --name=DiffeRT
```

If you want to use another name for your kernel, please also modify the
name in [`docs/source/conf.py`](docs/source/conf.py):

```python
nb_kernel_rgx_aliases = {".*": "DiffeRT"}
```

Then, you can build the docs with:
To generate the documentation, please run the following:

```bash
cd docs
Expand Down
1 change: 0 additions & 1 deletion docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,6 @@
# -- MyST-nb settings
myst_heading_anchors = 3

nb_kernel_rgx_aliases = {".*": "DiffeRT"} # TODO: do not require specific kernel name
nb_merge_streams = True

# By default, MyST-nb chooses the Widget output instead of the 2D snapshot
Expand Down
4 changes: 2 additions & 2 deletions docs/source/notebooks/advanced_path_tracing.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -127,9 +127,9 @@
],
"metadata": {
"kernelspec": {
"display_name": "DiffeRT",
"display_name": "Python 3 (ipykernel)",
"language": "python",
"name": "differt"
"name": "python3"
},
"language_info": {
"codemirror_mode": {
Expand Down
4 changes: 2 additions & 2 deletions docs/source/notebooks/performance_tips.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -192,9 +192,9 @@
],
"metadata": {
"kernelspec": {
"display_name": "DiffeRT",
"display_name": "Python 3 (ipykernel)",
"language": "python",
"name": "differt"
"name": "python3"
},
"language_info": {
"codemirror_mode": {
Expand Down
4 changes: 2 additions & 2 deletions docs/source/notebooks/plotting_backend.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -200,9 +200,9 @@
],
"metadata": {
"kernelspec": {
"display_name": "DiffeRT",
"display_name": "Python 3 (ipykernel)",
"language": "python",
"name": "differt"
"name": "python3"
},
"language_info": {
"codemirror_mode": {
Expand Down
4 changes: 2 additions & 2 deletions docs/source/notebooks/quickstart.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -233,9 +233,9 @@
],
"metadata": {
"kernelspec": {
"display_name": "DiffeRT",
"display_name": "Python 3 (ipykernel)",
"language": "python",
"name": "differt"
"name": "python3"
},
"language_info": {
"codemirror_mode": {
Expand Down
4 changes: 2 additions & 2 deletions docs/source/notebooks/ray_tracing_at_city_scale.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -148,9 +148,9 @@
],
"metadata": {
"kernelspec": {
"display_name": "DiffeRT",
"display_name": "Python 3 (ipykernel)",
"language": "python",
"name": "differt"
"name": "python3"
},
"language_info": {
"codemirror_mode": {
Expand Down
4 changes: 2 additions & 2 deletions docs/source/notebooks/type_checking.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -199,9 +199,9 @@
],
"metadata": {
"kernelspec": {
"display_name": "DiffeRT",
"display_name": "Python 3 (ipykernel)",
"language": "python",
"name": "differt"
"name": "python3"
},
"language_info": {
"codemirror_mode": {
Expand Down

0 comments on commit bd65b94

Please sign in to comment.