Skip to content

Commit

Permalink
[fix] Tutorials on Colab Crash (#1418)
Browse files Browse the repository at this point in the history
* uninstall packages

* documentation
  • Loading branch information
SimonWittner authored Sep 18, 2023
1 parent 56d9910 commit 012bb1f
Show file tree
Hide file tree
Showing 12 changed files with 31 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@
"outputs": [],
"source": [
"if \"google.colab\" in str(get_ipython()):\n",
" # uninstall preinstalled packages from Colab to avoid conflicts\n",
" !pip uninstall -y torch notebook notebook_shim tensorflow tensorflow-datasets prophet torchaudio torchdata torchtext torchvision \n",
" !pip install git+https://github.com/ourownstory/neural_prophet.git # may take a while\n",
" #!pip install neuralprophet # much faster, but may not have the latest upgrades/bugfixes\n",
"\n",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@
"outputs": [],
"source": [
"if \"google.colab\" in str(get_ipython()):\n",
" # uninstall preinstalled packages from Colab to avoid conflicts\n",
" !pip uninstall -y torch notebook notebook_shim tensorflow tensorflow-datasets prophet torchaudio torchdata torchtext torchvision \n",
" !pip install git+https://github.com/ourownstory/neural_prophet.git # may take a while\n",
" #!pip install neuralprophet # much faster, but may not have the latest upgrades/bugfixes\n",
"\n",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@
"outputs": [],
"source": [
"if \"google.colab\" in str(get_ipython()):\n",
" # uninstall preinstalled packages from Colab to avoid conflicts\n",
" !pip uninstall -y torch notebook notebook_shim tensorflow tensorflow-datasets prophet torchaudio torchdata torchtext torchvision \n",
" !pip install git+https://github.com/ourownstory/neural_prophet.git['live'] # may take a while\n",
" #!pip install neuralprophet # much faster, but may not have the latest upgrades/bugfixes\n",
"\n",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@
"outputs": [],
"source": [
"if \"google.colab\" in str(get_ipython()):\n",
" # uninstall preinstalled packages from Colab to avoid conflicts\n",
" !pip uninstall -y torch notebook notebook_shim tensorflow tensorflow-datasets prophet torchaudio torchdata torchtext torchvision \n",
" !pip install git+https://github.com/ourownstory/neural_prophet.git # may take a while\n",
" #!pip install neuralprophet # much faster, but may not have the latest upgrades/bugfixes\n",
"\n",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@
"outputs": [],
"source": [
"if \"google.colab\" in str(get_ipython()):\n",
" # uninstall preinstalled packages from Colab to avoid conflicts\n",
" !pip uninstall -y torch notebook notebook_shim tensorflow tensorflow-datasets prophet torchaudio torchdata torchtext torchvision \n",
" !pip install git+https://github.com/ourownstory/neural_prophet.git@examples_cond_seas # may take a while\n",
" #!pip install neuralprophet # much faster, but may not have the latest upgrades/bugfixes\n",
"\n",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,8 @@
"outputs": [],
"source": [
"if \"google.colab\" in str(get_ipython()):\n",
" # uninstall preinstalled packages from Colab to avoid conflicts\n",
" !pip uninstall -y torch notebook notebook_shim tensorflow tensorflow-datasets prophet torchaudio torchdata torchtext torchvision \n",
" !pip install git+https://github.com/ourownstory/neural_prophet.git # may take a while\n",
" #!pip install neuralprophet # much faster, but may not have the latest upgrades/bugfixes\n",
"\n",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@
"outputs": [],
"source": [
"if \"google.colab\" in str(get_ipython()):\n",
" # uninstall preinstalled packages from Colab to avoid conflicts\n",
" !pip uninstall -y torch notebook notebook_shim tensorflow tensorflow-datasets prophet torchaudio torchdata torchtext torchvision \n",
" !pip install git+https://github.com/ourownstory/neural_prophet.git # may take a while\n",
" #!pip install neuralprophet # much faster, but may not have the latest upgrades/bugfixes\n",
"\n",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@
"outputs": [],
"source": [
"if \"google.colab\" in str(get_ipython()):\n",
" # uninstall preinstalled packages from Colab to avoid conflicts\n",
" !pip uninstall -y torch notebook notebook_shim tensorflow tensorflow-datasets prophet torchaudio torchdata torchtext torchvision \n",
" !pip install git+https://github.com/ourownstory/neural_prophet.git # may take a while\n",
" #!pip install neuralprophet # much faster, but may not have the latest upgrades/bugfixes\n",
"\n",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@
"outputs": [],
"source": [
"if \"google.colab\" in str(get_ipython()):\n",
" # uninstall preinstalled packages from Colab to avoid conflicts\n",
" !pip uninstall -y torch notebook notebook_shim tensorflow tensorflow-datasets prophet torchaudio torchdata torchtext torchvision \n",
" !pip install git+https://github.com/ourownstory/neural_prophet.git # may take a while\n",
" #!pip install neuralprophet # much faster, but may not have the latest upgrades/bugfixes\n",
"\n",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@
"outputs": [],
"source": [
"if \"google.colab\" in str(get_ipython()):\n",
" # uninstall preinstalled packages from Colab to avoid conflicts\n",
" !pip uninstall -y torch notebook notebook_shim tensorflow tensorflow-datasets prophet torchaudio torchdata torchtext torchvision \n",
" #!pip install git+https://github.com/ourownstory/neural_prophet.git # may take a while\n",
" !pip install neuralprophet # much faster, but may not have the latest upgrades/bugfixes\n",
"\n",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@
"# pip install neuralprophet\n",
"\n",
"if \"google.colab\" in str(get_ipython()):\n",
" # uninstall preinstalled packages from Colab to avoid conflicts\n",
" !pip uninstall -y torch notebook notebook_shim tensorflow tensorflow-datasets prophet torchaudio torchdata torchtext torchvision \n",
" !pip install git+https://github.com/ourownstory/neural_prophet.git # may take a while"
]
},
Expand Down
10 changes: 9 additions & 1 deletion docs/source/quickstart.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"\n",
" $ pip install neuralprophet\n",
"\n",
"If you plan to use the package in a Jupyter notebook, we recommend to install the 'live' version. This will allow you to enable `progress='plot'` in the train function to get a live plot of train (and validation) loss.\n",
"If you plan to use the package in a Jupyter notebook, we recommend to install the 'live' version. This will allow you to enable `progress='plot'` in the train function to get a live plot of train (and validation) loss:\n",
"\n",
" $ pip install neuralprophet[live]\n",
"\n",
Expand All @@ -23,6 +23,14 @@
" $ cd neural_prophet\n",
" $ pip install .\n",
"\n",
"If you plan to use NeuralProphet in Google Colab, please use the following commands to avoid conflicts with pre-installed packages in Colab:\n",
"\n",
" !pip uninstall -y torch notebook notebook_shim tensorflow tensorflow-datasets prophet torchaudio torchdata torchtext torchvision\n",
" \n",
" !pip install neuralprophet\n",
" or\n",
" !pip install git+https://github.com/ourownstory/neural_prophet.git\n",
" \n",
"### Import\n",
"Now you can use NeuralProphet in your code:"
]
Expand Down

0 comments on commit 012bb1f

Please sign in to comment.