Skip to content

Commit e3584a4

Browse files
committed
sync
1 parent d651dd1 commit e3584a4

File tree

3 files changed

+15
-3
lines changed

3 files changed

+15
-3
lines changed

notebooks/examples/exponential_sampling.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,10 @@ kernelspec:
1515

1616
Here we sample the Asymmetric Laplace distribution. We will set the mean to 0 and the variance to 1 so that the distribution is fully determined by the asymmetric parameter $\kappa$.
1717

18+
```{admonition} Interactive notebook not enabled in docs - how to run it interactively?
19+
The widget below is not enabled in the documentation. You can run the notebook to see the widget in action, see [contributing](../reference/contributing.md) for instructions on how to run the notebook.
20+
```
21+
1822
```{code-cell} ipython3
1923
from quantflow.utils.distributions import DoubleExponential
2024
from quantflow.utils import bins

notebooks/examples/gaussian_sampling.md

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ jupytext:
66
format_version: 0.13
77
jupytext_version: 1.16.6
88
kernelspec:
9-
display_name: Python 3 (ipykernel)
9+
display_name: .venv
1010
language: python
1111
name: python3
1212
---
@@ -15,7 +15,11 @@ kernelspec:
1515

1616
Here we sample the gaussian OU process for different mean reversion speed and number of paths.
1717

18-
```{code-cell}
18+
```{admonition} Interactive notebook not enabled in docs - how to run it interactively?
19+
The widget below is not enabled in the documentation. You can run the notebook to see the widget in action, see [contributing](../reference/contributing.md) for instructions on how to run the notebook.
20+
```
21+
22+
```{code-cell} ipython3
1923
from quantflow.sp.ou import Vasicek
2024
from quantflow.utils import plot
2125
import ipywidgets as widgets
@@ -51,6 +55,6 @@ fig = go.FigureWidget(data=[simulation, analytical])
5155
widgets.VBox([kappa, samples, fig])
5256
```
5357

54-
```{code-cell}
58+
```{code-cell} ipython3
5559
5660
```

notebooks/examples/poisson_sampling.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,10 @@ kernelspec:
1515

1616
Evaluate the MC simulation for The Poisson process against the analytical PDF.
1717

18+
```{admonition} Interactive notebook not enabled in docs - how to run it interactively?
19+
The widget below is not enabled in the documentation. You can run the notebook to see the widget in action, see [contributing](../reference/contributing.md) for instructions on how to run the notebook.
20+
```
21+
1822
```{code-cell}
1923
from quantflow.sp.poisson import PoissonProcess
2024
from quantflow.utils import plot

0 commit comments

Comments
 (0)