summaryrefslogtreecommitdiff
path: root/python-jupyter-dash.spec
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2023-04-11 03:35:00 +0000
committerCoprDistGit <infra@openeuler.org>2023-04-11 03:35:00 +0000
commit4f54850052a5630b9aee17d8656d28e9cad5152b (patch)
treecfff9f5f52696a0606aaa998804d7bdd2d86d10f /python-jupyter-dash.spec
parent562cfcde13454e9f4b7aa7a7d68ecb764d92581a (diff)
automatic import of python-jupyter-dash
Diffstat (limited to 'python-jupyter-dash.spec')
-rw-r--r--python-jupyter-dash.spec311
1 files changed, 311 insertions, 0 deletions
diff --git a/python-jupyter-dash.spec b/python-jupyter-dash.spec
new file mode 100644
index 0000000..b0a79bd
--- /dev/null
+++ b/python-jupyter-dash.spec
@@ -0,0 +1,311 @@
+%global _empty_manifest_terminate_build 0
+Name: python-jupyter-dash
+Version: 0.4.2
+Release: 1
+Summary: Dash support for the Jupyter notebook interface
+License: MIT
+URL: https://github.com/plotly/jupyter-dash
+Source0: https://mirrors.nju.edu.cn/pypi/web/packages/d6/49/1f99474c4d22c7bc05a96ee9d1301ed5eda6aee27f0bce0d9761f3759e49/jupyter-dash-0.4.2.tar.gz
+BuildArch: noarch
+
+Requires: python3-dash
+Requires: python3-requests
+Requires: python3-flask
+Requires: python3-retrying
+Requires: python3-ipython
+Requires: python3-ipykernel
+Requires: python3-ansi2html
+Requires: python3-nest-asyncio
+Requires: python3-jupyterlab
+Requires: python3-notebook
+Requires: python3-jupyter-server-proxy
+
+%description
+# Jupyter Dash
+[![Binder](https://mybinder.org/badge_logo.svg)](https://mybinder.org/v2/gh/plotly/jupyter-dash/master?urlpath=tree/notebooks/getting_started.ipynb)
+
+This library makes it easy to develop Plotly Dash apps interactively from within Jupyter environments (e.g. classic Notebook, JupyterLab, Visual Studio Code notebooks, nteract, PyCharm notebooks, etc.).
+
+![jupterlab example](https://user-images.githubusercontent.com/15064365/82324108-150d4200-99a7-11ea-8d22-5c1bb8acaadb.gif)
+
+See the [notebooks/getting_started.ipynb](https://github.com/plotly/jupyter-dash/blob/master/notebooks/getting_started.ipynb) for more information and example usage.
+
+# Installation
+You can install the JupyterDash Python package using pip...
+```
+$ pip install jupyter-dash
+```
+or conda
+```
+$ conda install -c conda-forge -c plotly jupyter-dash
+```
+
+## JupyterLab support
+When used in JupyterLab, JupyterDash depends on the [`jupyterlab-dash`](https://www.npmjs.com/package/jupyterlab-dash) JupyterLab extension, which requires JupyterLab version 2.0 or above.
+
+This extension is included with the Python package, but in order to activate it JupyterLab must be rebuilt. JupyterLab should automatically produce a popup dialog asking for permission to rebuild, but the rebuild can also be performed manually from the command line using:
+
+ ```
+$ jupyter lab build
+```
+
+To check that the extension is installed properly, call `jupyter labextension list`.
+
+## Colab support
+As of version 0.3.0, `JupyterDash` works in Colab with no additional configuration. Just install `jupyter-dash` using pip in a Colab notebook cell
+```
+!pip install jupyter-dash
+```
+
+# Features
+To learn more about the features of JupyterDash, check out the [announcement post](https://medium.com/plotly/introducing-jupyterdash-811f1f57c02e).
+
+# Development
+To develop JupyterDash, first create and activate a virtual environment using virtualenv or conda.
+
+Then clone the repository and change directory to the repository root:
+```
+$ git clone https://github.com/plotly/jupyter-dash.git
+$ cd jupyter-dash
+```
+
+Then install the dependencies:
+```
+$ pip install -r requirements.txt -r requirements-dev.txt
+```
+
+Then install the Python package in editable mode. Note: this will require [nodejs](https://nodejs.org/en/) to be installed.
+```
+$ pip install -e .
+```
+
+Then install the classic notebook extension in development mode:
+```
+$ jupyter nbextension install --sys-prefix --symlink --py jupyter_dash
+$ jupyter nbextension enable --py jupyter_dash
+```
+
+Then install the JupyterLab extension in development mode:
+```
+$ jupyter labextension link extensions/jupyterlab
+```
+
+For release, build the JupyterLab extension to bundle with the Python package (see [RELEASE.md](https://github.com/plotly/jupyter-dash/blob/master/RELEASE.md) for the full process):
+
+```
+$ python setup.py build_js
+```
+
+
+
+
+%package -n python3-jupyter-dash
+Summary: Dash support for the Jupyter notebook interface
+Provides: python-jupyter-dash
+BuildRequires: python3-devel
+BuildRequires: python3-setuptools
+BuildRequires: python3-pip
+%description -n python3-jupyter-dash
+# Jupyter Dash
+[![Binder](https://mybinder.org/badge_logo.svg)](https://mybinder.org/v2/gh/plotly/jupyter-dash/master?urlpath=tree/notebooks/getting_started.ipynb)
+
+This library makes it easy to develop Plotly Dash apps interactively from within Jupyter environments (e.g. classic Notebook, JupyterLab, Visual Studio Code notebooks, nteract, PyCharm notebooks, etc.).
+
+![jupterlab example](https://user-images.githubusercontent.com/15064365/82324108-150d4200-99a7-11ea-8d22-5c1bb8acaadb.gif)
+
+See the [notebooks/getting_started.ipynb](https://github.com/plotly/jupyter-dash/blob/master/notebooks/getting_started.ipynb) for more information and example usage.
+
+# Installation
+You can install the JupyterDash Python package using pip...
+```
+$ pip install jupyter-dash
+```
+or conda
+```
+$ conda install -c conda-forge -c plotly jupyter-dash
+```
+
+## JupyterLab support
+When used in JupyterLab, JupyterDash depends on the [`jupyterlab-dash`](https://www.npmjs.com/package/jupyterlab-dash) JupyterLab extension, which requires JupyterLab version 2.0 or above.
+
+This extension is included with the Python package, but in order to activate it JupyterLab must be rebuilt. JupyterLab should automatically produce a popup dialog asking for permission to rebuild, but the rebuild can also be performed manually from the command line using:
+
+ ```
+$ jupyter lab build
+```
+
+To check that the extension is installed properly, call `jupyter labextension list`.
+
+## Colab support
+As of version 0.3.0, `JupyterDash` works in Colab with no additional configuration. Just install `jupyter-dash` using pip in a Colab notebook cell
+```
+!pip install jupyter-dash
+```
+
+# Features
+To learn more about the features of JupyterDash, check out the [announcement post](https://medium.com/plotly/introducing-jupyterdash-811f1f57c02e).
+
+# Development
+To develop JupyterDash, first create and activate a virtual environment using virtualenv or conda.
+
+Then clone the repository and change directory to the repository root:
+```
+$ git clone https://github.com/plotly/jupyter-dash.git
+$ cd jupyter-dash
+```
+
+Then install the dependencies:
+```
+$ pip install -r requirements.txt -r requirements-dev.txt
+```
+
+Then install the Python package in editable mode. Note: this will require [nodejs](https://nodejs.org/en/) to be installed.
+```
+$ pip install -e .
+```
+
+Then install the classic notebook extension in development mode:
+```
+$ jupyter nbextension install --sys-prefix --symlink --py jupyter_dash
+$ jupyter nbextension enable --py jupyter_dash
+```
+
+Then install the JupyterLab extension in development mode:
+```
+$ jupyter labextension link extensions/jupyterlab
+```
+
+For release, build the JupyterLab extension to bundle with the Python package (see [RELEASE.md](https://github.com/plotly/jupyter-dash/blob/master/RELEASE.md) for the full process):
+
+```
+$ python setup.py build_js
+```
+
+
+
+
+%package help
+Summary: Development documents and examples for jupyter-dash
+Provides: python3-jupyter-dash-doc
+%description help
+# Jupyter Dash
+[![Binder](https://mybinder.org/badge_logo.svg)](https://mybinder.org/v2/gh/plotly/jupyter-dash/master?urlpath=tree/notebooks/getting_started.ipynb)
+
+This library makes it easy to develop Plotly Dash apps interactively from within Jupyter environments (e.g. classic Notebook, JupyterLab, Visual Studio Code notebooks, nteract, PyCharm notebooks, etc.).
+
+![jupterlab example](https://user-images.githubusercontent.com/15064365/82324108-150d4200-99a7-11ea-8d22-5c1bb8acaadb.gif)
+
+See the [notebooks/getting_started.ipynb](https://github.com/plotly/jupyter-dash/blob/master/notebooks/getting_started.ipynb) for more information and example usage.
+
+# Installation
+You can install the JupyterDash Python package using pip...
+```
+$ pip install jupyter-dash
+```
+or conda
+```
+$ conda install -c conda-forge -c plotly jupyter-dash
+```
+
+## JupyterLab support
+When used in JupyterLab, JupyterDash depends on the [`jupyterlab-dash`](https://www.npmjs.com/package/jupyterlab-dash) JupyterLab extension, which requires JupyterLab version 2.0 or above.
+
+This extension is included with the Python package, but in order to activate it JupyterLab must be rebuilt. JupyterLab should automatically produce a popup dialog asking for permission to rebuild, but the rebuild can also be performed manually from the command line using:
+
+ ```
+$ jupyter lab build
+```
+
+To check that the extension is installed properly, call `jupyter labextension list`.
+
+## Colab support
+As of version 0.3.0, `JupyterDash` works in Colab with no additional configuration. Just install `jupyter-dash` using pip in a Colab notebook cell
+```
+!pip install jupyter-dash
+```
+
+# Features
+To learn more about the features of JupyterDash, check out the [announcement post](https://medium.com/plotly/introducing-jupyterdash-811f1f57c02e).
+
+# Development
+To develop JupyterDash, first create and activate a virtual environment using virtualenv or conda.
+
+Then clone the repository and change directory to the repository root:
+```
+$ git clone https://github.com/plotly/jupyter-dash.git
+$ cd jupyter-dash
+```
+
+Then install the dependencies:
+```
+$ pip install -r requirements.txt -r requirements-dev.txt
+```
+
+Then install the Python package in editable mode. Note: this will require [nodejs](https://nodejs.org/en/) to be installed.
+```
+$ pip install -e .
+```
+
+Then install the classic notebook extension in development mode:
+```
+$ jupyter nbextension install --sys-prefix --symlink --py jupyter_dash
+$ jupyter nbextension enable --py jupyter_dash
+```
+
+Then install the JupyterLab extension in development mode:
+```
+$ jupyter labextension link extensions/jupyterlab
+```
+
+For release, build the JupyterLab extension to bundle with the Python package (see [RELEASE.md](https://github.com/plotly/jupyter-dash/blob/master/RELEASE.md) for the full process):
+
+```
+$ python setup.py build_js
+```
+
+
+
+
+%prep
+%autosetup -n jupyter-dash-0.4.2
+
+%build
+%py3_build
+
+%install
+%py3_install
+install -d -m755 %{buildroot}/%{_pkgdocdir}
+if [ -d doc ]; then cp -arf doc %{buildroot}/%{_pkgdocdir}; fi
+if [ -d docs ]; then cp -arf docs %{buildroot}/%{_pkgdocdir}; fi
+if [ -d example ]; then cp -arf example %{buildroot}/%{_pkgdocdir}; fi
+if [ -d examples ]; then cp -arf examples %{buildroot}/%{_pkgdocdir}; fi
+pushd %{buildroot}
+if [ -d usr/lib ]; then
+ find usr/lib -type f -printf "/%h/%f\n" >> filelist.lst
+fi
+if [ -d usr/lib64 ]; then
+ find usr/lib64 -type f -printf "/%h/%f\n" >> filelist.lst
+fi
+if [ -d usr/bin ]; then
+ find usr/bin -type f -printf "/%h/%f\n" >> filelist.lst
+fi
+if [ -d usr/sbin ]; then
+ find usr/sbin -type f -printf "/%h/%f\n" >> filelist.lst
+fi
+touch doclist.lst
+if [ -d usr/share/man ]; then
+ find usr/share/man -type f -printf "/%h/%f.gz\n" >> doclist.lst
+fi
+popd
+mv %{buildroot}/filelist.lst .
+mv %{buildroot}/doclist.lst .
+
+%files -n python3-jupyter-dash -f filelist.lst
+%dir %{python3_sitelib}/*
+
+%files help -f doclist.lst
+%{_docdir}/*
+
+%changelog
+* Tue Apr 11 2023 Python_Bot <Python_Bot@openeuler.org> - 0.4.2-1
+- Package Spec generated