Skip to content

Commit

Permalink
Add render-on-github badge and fix my binder link (#1214)
Browse files Browse the repository at this point in the history
Co-authored-by: Sanket Bhiogade <[email protected]>
Co-authored-by: Sylwester Arabas <[email protected]>
  • Loading branch information
3 people authored Jan 5, 2024
1 parent e95ccfd commit 72a7892
Show file tree
Hide file tree
Showing 15 changed files with 1,061 additions and 7,002 deletions.
181 changes: 154 additions & 27 deletions examples/PySDM_examples/Abdul_Razzak_Ghan_2000/figs1-5.ipynb

Large diffs are not rendered by default.

60 changes: 45 additions & 15 deletions examples/PySDM_examples/Arabas_and_Shima_2017/fig_5.ipynb

Large diffs are not rendered by default.

108 changes: 84 additions & 24 deletions examples/PySDM_examples/Berry_1967/figs_5_8_10.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
"cell_type": "markdown",
"metadata": {},
"source": [
"[![View notebook](https://img.shields.io/static/v1?label=render%20on&logo=github&color=87ce3e&message=GitHub)](https://github.com/open-atmos/PySDM/blob/main/examples/PySDM_examples/Berry_1967/figs_5_8_10.ipynb)\n",
"[![Binder](https://mybinder.org/badge_logo.svg)](https://mybinder.org/v2/gh/open-atmos/PySDM.git/main?urlpath=lab/tree/examples/PySDM_examples/Berry_1967/figs_5_8_10.ipynb) \n",
"[![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/open-atmos/PySDM/blob/main/examples/PySDM_examples/Berry_1967/figs_5_8_10.ipynb)"
]
Expand All @@ -18,8 +19,13 @@
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"execution_count": 6,
"metadata": {
"ExecuteTime": {
"end_time": "2023-12-29T12:32:48.816413Z",
"start_time": "2023-12-29T12:32:48.801075Z"
}
},
"outputs": [],
"source": [
"import sys\n",
Expand All @@ -31,10 +37,14 @@
},
{
"cell_type": "code",
"execution_count": null,
"execution_count": 7,
"metadata": {
"pycharm": {
"name": "#%%\n"
},
"ExecuteTime": {
"end_time": "2023-12-29T12:32:48.818968Z",
"start_time": "2023-12-29T12:32:48.807900Z"
}
},
"outputs": [],
Expand All @@ -51,17 +61,27 @@
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"execution_count": 8,
"metadata": {
"ExecuteTime": {
"end_time": "2023-12-29T12:32:48.839505Z",
"start_time": "2023-12-29T12:32:48.828044Z"
}
},
"outputs": [],
"source": [
"progbar = widgets.IntProgress(min=0, max=100, description='%')"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"execution_count": 9,
"metadata": {
"ExecuteTime": {
"end_time": "2023-12-29T12:32:48.850503Z",
"start_time": "2023-12-29T12:32:48.845630Z"
}
},
"outputs": [],
"source": [
"def demo(**kwargs):\n",
Expand Down Expand Up @@ -91,9 +111,63 @@
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"execution_count": 10,
"metadata": {
"ExecuteTime": {
"end_time": "2023-12-29T12:32:50.477195Z",
"start_time": "2023-12-29T12:32:48.858011Z"
}
},
"outputs": [
{
"data": {
"text/plain": "HBox(children=(IntSlider(value=14, continuous_update=False, description='$log_2(n_{SD})$', max=18, min=12), In…",
"application/vnd.jupyter.widget-view+json": {
"version_major": 2,
"version_minor": 0,
"model_id": "c383158d6a3940bbac011961be46ad45"
}
},
"metadata": {},
"output_type": "display_data"
},
{
"data": {
"text/plain": "HBox(children=(Checkbox(value=False, description='adaptive dt'), Checkbox(value=True, description='smooth plot…",
"application/vnd.jupyter.widget-view+json": {
"version_major": 2,
"version_minor": 0,
"model_id": "3cfcefa81e674e17b8d3dab47192f52b"
}
},
"metadata": {},
"output_type": "display_data"
},
{
"data": {
"text/plain": "IntProgress(value=100, description='%')",
"application/vnd.jupyter.widget-view+json": {
"version_major": 2,
"version_minor": 0,
"model_id": "f3f4fbcd471340d4938397b716eaf207"
}
},
"metadata": {},
"output_type": "display_data"
},
{
"data": {
"text/plain": "Output()",
"application/vnd.jupyter.widget-view+json": {
"version_major": 2,
"version_minor": 0,
"model_id": "771bf2c1aea44602b84e83643204aa2e"
}
},
"metadata": {},
"output_type": "display_data"
}
],
"source": [
"n_SD = widgets.IntSlider(value=14, min=12, max=18, step=1, description='$log_2(n_{SD})$', continuous_update=False)\n",
"n_step = widgets.IntSlider(value=1000, step=100, min=0, max=2400, description='$n_{step}$', continuous_update=False)\n",
Expand Down Expand Up @@ -122,20 +196,6 @@
"\n",
"display(sliders, boxes, progbar, self)"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": []
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": []
}
],
"metadata": {
Expand Down
61 changes: 45 additions & 16 deletions examples/PySDM_examples/Bieli_et_al_2022/make_fig_3.ipynb

Large diffs are not rendered by default.

Loading

0 comments on commit 72a7892

Please sign in to comment.