From cf069b59181d92e0174e31be7ce5e73b883a326e Mon Sep 17 00:00:00 2001 From: Krystian Safjan Date: Mon, 19 Sep 2022 15:33:13 +0200 Subject: [PATCH 1/2] Add extra packages used in example notebooks to file --- examples/requirements.txt | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 examples/requirements.txt diff --git a/examples/requirements.txt b/examples/requirements.txt new file mode 100644 index 00000000..c0b9bad3 --- /dev/null +++ b/examples/requirements.txt @@ -0,0 +1,16 @@ +# This convenience file that contains package names that are used by notebooks +# in the "examples" directory. + +yfinance +statsmodels +kaleido +python-binance +ta-lib +python-telegram-bot +ccxt + +# There is a matplotlib-related bug in the current release of backtrader. +# There is fix, but it is not yet released. So, we need to install backtrader with the path merged. +# See: https://github.com/mementum/backtrader/pull/418#issuecomment-810237185 +git+https://github.com/mementum/backtrader.git@0fa63ef4a35dc53cc7320813f8b15480c8f85517#egg=backtrader + From 80e70d72413dedf2be4eaf91f5784608e23fbf7d Mon Sep 17 00:00:00 2001 From: Krystian Safjan Date: Mon, 19 Sep 2022 16:14:31 +0200 Subject: [PATCH 2/2] Removed redundant requirements Left installation of backtrader with patch. --- examples/requirements-backtrader.txt | 4 ++++ examples/requirements.txt | 16 ---------------- 2 files changed, 4 insertions(+), 16 deletions(-) create mode 100644 examples/requirements-backtrader.txt delete mode 100644 examples/requirements.txt diff --git a/examples/requirements-backtrader.txt b/examples/requirements-backtrader.txt new file mode 100644 index 00000000..8d969dcd --- /dev/null +++ b/examples/requirements-backtrader.txt @@ -0,0 +1,4 @@ +# Convenience file that helps to install backtrader with patch fixing matplotlib problem. + +git+https://github.com/mementum/backtrader.git@0fa63ef4a35dc53cc7320813f8b15480c8f85517#egg=backtrader + diff --git a/examples/requirements.txt b/examples/requirements.txt deleted file mode 100644 index c0b9bad3..00000000 --- a/examples/requirements.txt +++ /dev/null @@ -1,16 +0,0 @@ -# This convenience file that contains package names that are used by notebooks -# in the "examples" directory. - -yfinance -statsmodels -kaleido -python-binance -ta-lib -python-telegram-bot -ccxt - -# There is a matplotlib-related bug in the current release of backtrader. -# There is fix, but it is not yet released. So, we need to install backtrader with the path merged. -# See: https://github.com/mementum/backtrader/pull/418#issuecomment-810237185 -git+https://github.com/mementum/backtrader.git@0fa63ef4a35dc53cc7320813f8b15480c8f85517#egg=backtrader -