From 22c49eb87c4790e6950e67ff05778aabd62e7ef4 Mon Sep 17 00:00:00 2001 From: sklbancor <109073706+sklbancor@users.noreply.github.com> Date: Wed, 14 Dec 2022 13:50:39 +0000 Subject: [PATCH] Split requirements.txt ... --- README.md | 6 ++++-- requirements.txt | 2 -- requirements_ui.txt | 1 + 3 files changed, 5 insertions(+), 4 deletions(-) create mode 100644 requirements_ui.txt diff --git a/README.md b/README.md index 6ef88e0a..f1288961 100644 --- a/README.md +++ b/README.md @@ -40,10 +40,11 @@ The permament Github URL for this repo is [`bancorprotocol/carbon-simulator`][re If you already have Python and Jupyter installed, you can launch a Jupyter instance in the root directory of the project by running `jupyter notebook` and then opening the notebook [`CarbonSim-Example.ipynb`][cse], or any of the other notebooks in that directory. -You may run into missing modules that need to be installed via pip. In this case, either install them manually based on the list in the [`requirements.txt`][rqt] or refer to the instructions below. We also recommend to install [JupyText][jupytext]. +You may run into missing modules that need to be installed via pip. In this case, either install them manually based on the list in [`requirements.txt`][rqt] and [`requirements_ui.txt`][rqtui] or refer to the instructions below. We also recommend to install [JupyText][jupytext]. [cse]:https://github.com/bancorprotocol/carbon-simulator/blob/main/CarbonSim-Example.ipynb [rqt]:https://github.com/bancorprotocol/carbon-simulator/blob/main/requirements.txt +[rqtui]:https://github.com/bancorprotocol/carbon-simulator/blob/main/requirements_ui.txt ## Project setup @@ -70,11 +71,12 @@ Navigate to the top level project directory and start the Jupyter server: $ jupyter notebook ```` -Then run the notebook [`CarbonSim-Example.ipynb`][cse] or any of the other notebooks. If you are getting import errors, make sure all modules from [`requirements.txt`][rqt] are installed, eg by running +Then run the notebook [`CarbonSim-Example.ipynb`][cse] or any of the other notebooks. If you are getting import errors, make sure all modules from [`requirements.txt`][rqt] and [`requirements_ui.txt`][rqtui] are installed, eg by running ````{tab} PyPI $ pip install -r requirements.txt +$ pip install -r requirements_ui.txt ```` or by installing the required modules manually. diff --git a/requirements.txt b/requirements.txt index 81d2b935..ad35d397 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,8 +1,6 @@ pandas numpy matplotlib -jupyter tabulate setuptools -pytest-mpl pytest \ No newline at end of file diff --git a/requirements_ui.txt b/requirements_ui.txt new file mode 100644 index 00000000..87906ccb --- /dev/null +++ b/requirements_ui.txt @@ -0,0 +1 @@ +jupyter \ No newline at end of file