diff --git a/integrations-and-supported-tools/matplotlib/notebooks/Neptune_Matplotlib_Support.ipynb b/integrations-and-supported-tools/matplotlib/notebooks/Neptune_Matplotlib_Support.ipynb index 5d2ed4319..c07904661 100644 --- a/integrations-and-supported-tools/matplotlib/notebooks/Neptune_Matplotlib_Support.ipynb +++ b/integrations-and-supported-tools/matplotlib/notebooks/Neptune_Matplotlib_Support.ipynb @@ -76,7 +76,8 @@ "metadata": {}, "outputs": [], "source": [ - "! pip install -U \"matplotlib<3.5\" neptune plotly" + "%pip install -U -q neptune plotly matplotlib\n", + "%pip install -U -q matplotlib --user" ] }, { @@ -308,7 +309,7 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.10.4" + "version": "3.10.11" }, "toc-autonumbering": false, "toc-showcode": false, diff --git a/integrations-and-supported-tools/matplotlib/scripts/requirements.txt b/integrations-and-supported-tools/matplotlib/scripts/requirements.txt index 5d3d19952..3d3c3413a 100644 --- a/integrations-and-supported-tools/matplotlib/scripts/requirements.txt +++ b/integrations-and-supported-tools/matplotlib/scripts/requirements.txt @@ -1,3 +1,3 @@ -matplotlib<3.5 # Constraint required only if matplotlib figure has to be converted to plotly figure +matplotlib neptune plotly diff --git a/integrations-and-supported-tools/matplotlib/scripts/run_examples.sh b/integrations-and-supported-tools/matplotlib/scripts/run_examples.sh index 194e419cc..be0740011 100644 --- a/integrations-and-supported-tools/matplotlib/scripts/run_examples.sh +++ b/integrations-and-supported-tools/matplotlib/scripts/run_examples.sh @@ -1,7 +1,7 @@ set -e echo "Installing requirements..." -pip install -U -r requirements.txt +pip install -U -r requirements.txt --user echo "Running Neptune_Matplotlib_Support.py..." python Neptune_Matplotlib_Support.py diff --git a/integrations-and-supported-tools/prophet/notebooks/Neptune_prophet.ipynb b/integrations-and-supported-tools/prophet/notebooks/Neptune_prophet.ipynb index 204716386..d5ff0dac6 100644 --- a/integrations-and-supported-tools/prophet/notebooks/Neptune_prophet.ipynb +++ b/integrations-and-supported-tools/prophet/notebooks/Neptune_prophet.ipynb @@ -70,7 +70,8 @@ "metadata": {}, "outputs": [], "source": [ - "! pip install -U \"matplotlib<3.5\" \"neptune[prophet]\" \"pandas<2.0\" prophet" + "%pip install -U -q \"neptune[prophet]\" \"pandas<2.0\" prophet matplotlib\n", + "%pip install -U -q matplotlib --user" ] }, { @@ -341,6 +342,19 @@ "Open the link above to see the metadata logging results, as we add them below." ] }, + { + "cell_type": "code", + "execution_count": null, + "id": "03a30332", + "metadata": {}, + "outputs": [], + "source": [ + "# Run this if you get a `RuntimeError: main thread is not in main loop` error\n", + "import matplotlib\n", + "\n", + "matplotlib.use(\"Agg\")" + ] + }, { "attachments": {}, "cell_type": "markdown", diff --git a/integrations-and-supported-tools/prophet/scripts/requirements.txt b/integrations-and-supported-tools/prophet/scripts/requirements.txt index 9850f92ab..5380a4fd9 100644 --- a/integrations-and-supported-tools/prophet/scripts/requirements.txt +++ b/integrations-and-supported-tools/prophet/scripts/requirements.txt @@ -1,4 +1,4 @@ -matplotlib<3.5 +matplotlib neptune[prophet] pandas<2.0 prophet diff --git a/integrations-and-supported-tools/prophet/scripts/run_examples.sh b/integrations-and-supported-tools/prophet/scripts/run_examples.sh index 3b40c28bc..9cde7224e 100644 --- a/integrations-and-supported-tools/prophet/scripts/run_examples.sh +++ b/integrations-and-supported-tools/prophet/scripts/run_examples.sh @@ -1,7 +1,7 @@ set -e echo "Installing requirements..." -pip install -U -r requirements.txt +pip install -U -r requirements.txt --user echo "Running Neptune_prophet.py..." python Neptune_prophet.py diff --git a/use-cases/time-series-forecasting/walmart-sales/scripts/run_examples.sh b/use-cases/time-series-forecasting/walmart-sales/scripts/run_examples.sh index 41a81ec34..8b7f23006 100644 --- a/use-cases/time-series-forecasting/walmart-sales/scripts/run_examples.sh +++ b/use-cases/time-series-forecasting/walmart-sales/scripts/run_examples.sh @@ -3,7 +3,7 @@ set -e export NEPTUNE_PROJECT="common/project-time-series-forecasting" echo "Installing requirements..." -pip install -U -r ../requirements.txt +pip install -U -r ../requirements.txt --user echo "Running run_ml_baseline.py..." python run_ml_baseline.py