Skip to content

Commit

Permalink
Unpinning matplotlib and pandas (#279)
Browse files Browse the repository at this point in the history
* Unpinning matplotlib and pandas

* Fix pip install

* Fix pip install

* Fixed pip install

* Using ipython magic %pip

* Pinning pandas

* Tweaking installs
  • Loading branch information
SiddhantSadangi authored Oct 26, 2023
1 parent b819f30 commit 1d3e875
Show file tree
Hide file tree
Showing 7 changed files with 23 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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"
]
},
{
Expand Down Expand Up @@ -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,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
matplotlib<3.5 # Constraint required only if matplotlib figure has to be converted to plotly figure
matplotlib
neptune
plotly
Original file line number Diff line number Diff line change
@@ -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
Original file line number Diff line number Diff line change
Expand Up @@ -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"
]
},
{
Expand Down Expand Up @@ -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",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
matplotlib<3.5
matplotlib
neptune[prophet]
pandas<2.0
prophet
Original file line number Diff line number Diff line change
@@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 1d3e875

Please sign in to comment.