Skip to content

Commit

Permalink
Merge pull request #47 from ing-bank/feature/install_popmon_in_nbs
Browse files Browse the repository at this point in the history
Install popmon at the beginning of notebooks
  • Loading branch information
sbrugman authored Jul 8, 2020
2 parents 729ffd9 + 464a8d8 commit 4bafb72
Show file tree
Hide file tree
Showing 3 changed files with 70 additions and 37 deletions.
36 changes: 25 additions & 11 deletions popmon/notebooks/popmon_tutorial_advanced.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -14,18 +14,32 @@
{
"cell_type": "code",
"execution_count": null,
"outputs": [],
"source": [
"from IPython.core.display import display, HTML\n",
"display(HTML(\"<style>.container { width:80% !important; }</style>\"))\n",
"display(HTML(\"<style>div.output_scroll { height: 44em; }</style>\"))"
],
"metadata": {
"collapsed": false,
"jupyter": {
"outputs_hidden": false
},
"pycharm": {
"name": "#%%\n"
}
}
},
"outputs": [],
"source": [
"from IPython.core.display import display, HTML\n",
"display(HTML(\"<style>.container { width:80% !important; }</style>\"))\n",
"display(HTML(\"<style>div.output_scroll { height: 44em; }</style>\"))"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"# install popmon (if not installed yet)\n",
"import sys\n",
"!{sys.executable} -m pip install popmon"
]
},
{
"cell_type": "code",
Expand Down Expand Up @@ -400,21 +414,21 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.7.6"
"version": "3.7.7"
},
"nteract": {
"version": "0.15.0"
},
"pycharm": {
"stem_cell": {
"cell_type": "raw",
"source": [],
"metadata": {
"collapsed": false
}
},
"source": []
}
}
},
"nbformat": 4,
"nbformat_minor": 4
}
}
46 changes: 28 additions & 18 deletions popmon/notebooks/popmon_tutorial_basic.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,15 @@
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"collapsed": false,
"jupyter": {
"outputs_hidden": false
},
"pycharm": {
"name": "#%%\n"
}
},
"outputs": [],
"source": [
"# (optional) Adjust the jupyter notebook style for easier navigation of the reports\n",
Expand All @@ -22,13 +31,7 @@
"display(HTML(\"<style>.container { width:80% !important; }</style>\"))\n",
"# Cells are higher by default\n",
"display(HTML(\"<style>div.output_scroll { height: 44em; }</style>\"))"
],
"metadata": {
"collapsed": false,
"pycharm": {
"name": "#%%\n"
}
}
]
},
{
"cell_type": "markdown",
Expand All @@ -40,9 +43,18 @@
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"scrolled": false
},
"metadata": {},
"outputs": [],
"source": [
"# install popmon (if not installed yet)\n",
"import sys\n",
"!{sys.executable} -m pip install popmon"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"import pandas as pd\n",
Expand Down Expand Up @@ -93,9 +105,7 @@
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"scrolled": false
},
"metadata": {},
"outputs": [],
"source": [
"# generate report based on histograms\n",
Expand Down Expand Up @@ -177,18 +187,18 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.7.6"
"version": "3.7.7"
},
"pycharm": {
"stem_cell": {
"cell_type": "raw",
"source": [],
"metadata": {
"collapsed": false
}
},
"source": []
}
}
},
"nbformat": 4,
"nbformat_minor": 2
}
"nbformat_minor": 4
}
25 changes: 17 additions & 8 deletions popmon/notebooks/popmon_tutorial_incremental_data.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,18 @@
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"scrolled": false
},
"metadata": {},
"outputs": [],
"source": [
"# install popmon (if not installed yet)\n",
"import sys\n",
"!{sys.executable} -m pip install popmon"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"import pandas as pd\n",
Expand Down Expand Up @@ -432,18 +441,18 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.7.6"
"version": "3.7.7"
},
"pycharm": {
"stem_cell": {
"cell_type": "raw",
"source": [],
"metadata": {
"collapsed": false
}
},
"source": []
}
}
},
"nbformat": 4,
"nbformat_minor": 2
}
"nbformat_minor": 4
}

0 comments on commit 4bafb72

Please sign in to comment.