From 464a8d8cd2a17f53980cc2fa4e6def175cc87f6e Mon Sep 17 00:00:00 2001 From: Tomas Date: Tue, 7 Jul 2020 23:41:51 +0100 Subject: [PATCH] Add pip install popmon command at the beginning of nbs --- .../notebooks/popmon_tutorial_advanced.ipynb | 36 ++++++++++----- popmon/notebooks/popmon_tutorial_basic.ipynb | 46 +++++++++++-------- .../popmon_tutorial_incremental_data.ipynb | 25 ++++++---- 3 files changed, 70 insertions(+), 37 deletions(-) diff --git a/popmon/notebooks/popmon_tutorial_advanced.ipynb b/popmon/notebooks/popmon_tutorial_advanced.ipynb index b970be97..29a8fc8c 100644 --- a/popmon/notebooks/popmon_tutorial_advanced.ipynb +++ b/popmon/notebooks/popmon_tutorial_advanced.ipynb @@ -14,18 +14,32 @@ { "cell_type": "code", "execution_count": null, - "outputs": [], - "source": [ - "from IPython.core.display import display, HTML\n", - "display(HTML(\"\"))\n", - "display(HTML(\"\"))" - ], "metadata": { "collapsed": false, + "jupyter": { + "outputs_hidden": false + }, "pycharm": { "name": "#%%\n" } - } + }, + "outputs": [], + "source": [ + "from IPython.core.display import display, HTML\n", + "display(HTML(\"\"))\n", + "display(HTML(\"\"))" + ] + }, + { + "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", @@ -400,7 +414,7 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.7.6" + "version": "3.7.7" }, "nteract": { "version": "0.15.0" @@ -408,13 +422,13 @@ "pycharm": { "stem_cell": { "cell_type": "raw", - "source": [], "metadata": { "collapsed": false - } + }, + "source": [] } } }, "nbformat": 4, "nbformat_minor": 4 -} \ No newline at end of file +} diff --git a/popmon/notebooks/popmon_tutorial_basic.ipynb b/popmon/notebooks/popmon_tutorial_basic.ipynb index 49ef3631..d4a0a8ff 100644 --- a/popmon/notebooks/popmon_tutorial_basic.ipynb +++ b/popmon/notebooks/popmon_tutorial_basic.ipynb @@ -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", @@ -22,13 +31,7 @@ "display(HTML(\"\"))\n", "# Cells are higher by default\n", "display(HTML(\"\"))" - ], - "metadata": { - "collapsed": false, - "pycharm": { - "name": "#%%\n" - } - } + ] }, { "cell_type": "markdown", @@ -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", @@ -93,9 +105,7 @@ { "cell_type": "code", "execution_count": null, - "metadata": { - "scrolled": false - }, + "metadata": {}, "outputs": [], "source": [ "# generate report based on histograms\n", @@ -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 -} \ No newline at end of file + "nbformat_minor": 4 +} diff --git a/popmon/notebooks/popmon_tutorial_incremental_data.ipynb b/popmon/notebooks/popmon_tutorial_incremental_data.ipynb index e8b588b6..344d8281 100644 --- a/popmon/notebooks/popmon_tutorial_incremental_data.ipynb +++ b/popmon/notebooks/popmon_tutorial_incremental_data.ipynb @@ -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", @@ -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 -} \ No newline at end of file + "nbformat_minor": 4 +}