diff options
author | CoprDistGit <infra@openeuler.org> | 2023-04-10 16:39:22 +0000 |
---|---|---|
committer | CoprDistGit <infra@openeuler.org> | 2023-04-10 16:39:22 +0000 |
commit | 74246ae9f8b46d349f3938492dd50ba85f16dd81 (patch) | |
tree | 3e273909ff6d7d90a2f2cabf8bddccb56a401c27 | |
parent | 2198e4db86f846e0e332e2a65e2a90e88c2e07f1 (diff) |
automatic import of python-altair-data-server
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | python-altair-data-server.spec | 288 | ||||
-rw-r--r-- | sources | 1 |
3 files changed, 290 insertions, 0 deletions
@@ -0,0 +1 @@ +/altair_data_server-0.4.1.tar.gz diff --git a/python-altair-data-server.spec b/python-altair-data-server.spec new file mode 100644 index 0000000..da38afe --- /dev/null +++ b/python-altair-data-server.spec @@ -0,0 +1,288 @@ +%global _empty_manifest_terminate_build 0 +Name: python-altair-data-server +Version: 0.4.1 +Release: 1 +Summary: A background data server for Altair charts. +License: BSD 3-clause +URL: http://github.com/altair-viz/altair_data_server/ +Source0: https://mirrors.nju.edu.cn/pypi/web/packages/32/24/9f6a6c755fdaf5307e57222f64af85882c6a5e193a0c5537a456058748bc/altair_data_server-0.4.1.tar.gz +BuildArch: noarch + +Requires: python3-altair +Requires: python3-portpicker +Requires: python3-tornado + +%description +# Altair data server + +[](https://travis-ci.org/altair-viz/altair_data_server) +[](https://github.com/altair-viz/altair_data_server/actions?query=workflow%3Abuild) +[](https://github.com/altair-viz/altair_data_server/actions?query=workflow%3Alint) +[](https://github.com/psf/black) +[](https://mybinder.org/v2/gh/altair-viz/altair_data_server/master?urlpath=lab/tree/AltairDataServer.ipynb) +[](https://colab.research.google.com/github/altair-viz/altair_data_server/blob/master/AltairDataServer.ipynb) + + +This is a data transformer plugin for [Altair](http://altair-viz.github.io) +that transparently serves data for Altair charts via a background WSGI server. + +Note that charts will only render as long as your Python session is active. + +The data server is a good option when you'll be **generating multiple charts as +part of an exploration of data**. + +## Usage + +First install the package and its dependencies: + +``` +$ pip install altair_data_server +``` + +Next import altair and enable the data server: + +```python +import altair as alt +alt.data_transformers.enable('data_server') +``` +Now when you create an Altair chart, the data will be served in the background +rather than embedded in the chart specification. + +Once you are finished with exploration and want to generate charts that +will have their data fully embedded in the notebook, you can restore the +default data transformer: + +```python +alt.data_transformers.enable('default') +``` + +and carry on from there. + +## Remote Systems +Remotely-hosted notebooks (like JupyterHub or Binder) usually do not allow the end +user to access arbitrary ports. To enable users to work on that setup, make sure +[jupyter-server-proxy](https://github.com/jupyterhub/jupyter-server-proxy) is +installed on the jupyter server, and use the proxied data server transformer: + +```python +alt.data_transformers.enable('data_server_proxied') +``` + +## Example + +[](https://mybinder.org/v2/gh/altair-viz/altair_data_server/master?urlpath=lab/tree/AltairDataServer.ipynb) +[](https://colab.research.google.com/github/altair-viz/altair_data_server/blob/master/AltairDataServer.ipynb) + +You can see this in action, as well as read some of the motivation for this +plugin, in the example notebook: [AltairDataServer.ipynb](AltairDataServer.ipynb). +Click the Binder or Colab links above to try it out in your browser. + +## Known Issues + +Because [jupyter-server-proxy](https://github.com/jupyterhub/jupyter-server-proxy) +requires at least Python 3.5, the methods described in +[Remote Systems](#remote-systems) do not work do not work for older versions of Python. + + + + +%package -n python3-altair-data-server +Summary: A background data server for Altair charts. +Provides: python-altair-data-server +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +%description -n python3-altair-data-server +# Altair data server + +[](https://travis-ci.org/altair-viz/altair_data_server) +[](https://github.com/altair-viz/altair_data_server/actions?query=workflow%3Abuild) +[](https://github.com/altair-viz/altair_data_server/actions?query=workflow%3Alint) +[](https://github.com/psf/black) +[](https://mybinder.org/v2/gh/altair-viz/altair_data_server/master?urlpath=lab/tree/AltairDataServer.ipynb) +[](https://colab.research.google.com/github/altair-viz/altair_data_server/blob/master/AltairDataServer.ipynb) + + +This is a data transformer plugin for [Altair](http://altair-viz.github.io) +that transparently serves data for Altair charts via a background WSGI server. + +Note that charts will only render as long as your Python session is active. + +The data server is a good option when you'll be **generating multiple charts as +part of an exploration of data**. + +## Usage + +First install the package and its dependencies: + +``` +$ pip install altair_data_server +``` + +Next import altair and enable the data server: + +```python +import altair as alt +alt.data_transformers.enable('data_server') +``` +Now when you create an Altair chart, the data will be served in the background +rather than embedded in the chart specification. + +Once you are finished with exploration and want to generate charts that +will have their data fully embedded in the notebook, you can restore the +default data transformer: + +```python +alt.data_transformers.enable('default') +``` + +and carry on from there. + +## Remote Systems +Remotely-hosted notebooks (like JupyterHub or Binder) usually do not allow the end +user to access arbitrary ports. To enable users to work on that setup, make sure +[jupyter-server-proxy](https://github.com/jupyterhub/jupyter-server-proxy) is +installed on the jupyter server, and use the proxied data server transformer: + +```python +alt.data_transformers.enable('data_server_proxied') +``` + +## Example + +[](https://mybinder.org/v2/gh/altair-viz/altair_data_server/master?urlpath=lab/tree/AltairDataServer.ipynb) +[](https://colab.research.google.com/github/altair-viz/altair_data_server/blob/master/AltairDataServer.ipynb) + +You can see this in action, as well as read some of the motivation for this +plugin, in the example notebook: [AltairDataServer.ipynb](AltairDataServer.ipynb). +Click the Binder or Colab links above to try it out in your browser. + +## Known Issues + +Because [jupyter-server-proxy](https://github.com/jupyterhub/jupyter-server-proxy) +requires at least Python 3.5, the methods described in +[Remote Systems](#remote-systems) do not work do not work for older versions of Python. + + + + +%package help +Summary: Development documents and examples for altair-data-server +Provides: python3-altair-data-server-doc +%description help +# Altair data server + +[](https://travis-ci.org/altair-viz/altair_data_server) +[](https://github.com/altair-viz/altair_data_server/actions?query=workflow%3Abuild) +[](https://github.com/altair-viz/altair_data_server/actions?query=workflow%3Alint) +[](https://github.com/psf/black) +[](https://mybinder.org/v2/gh/altair-viz/altair_data_server/master?urlpath=lab/tree/AltairDataServer.ipynb) +[](https://colab.research.google.com/github/altair-viz/altair_data_server/blob/master/AltairDataServer.ipynb) + + +This is a data transformer plugin for [Altair](http://altair-viz.github.io) +that transparently serves data for Altair charts via a background WSGI server. + +Note that charts will only render as long as your Python session is active. + +The data server is a good option when you'll be **generating multiple charts as +part of an exploration of data**. + +## Usage + +First install the package and its dependencies: + +``` +$ pip install altair_data_server +``` + +Next import altair and enable the data server: + +```python +import altair as alt +alt.data_transformers.enable('data_server') +``` +Now when you create an Altair chart, the data will be served in the background +rather than embedded in the chart specification. + +Once you are finished with exploration and want to generate charts that +will have their data fully embedded in the notebook, you can restore the +default data transformer: + +```python +alt.data_transformers.enable('default') +``` + +and carry on from there. + +## Remote Systems +Remotely-hosted notebooks (like JupyterHub or Binder) usually do not allow the end +user to access arbitrary ports. To enable users to work on that setup, make sure +[jupyter-server-proxy](https://github.com/jupyterhub/jupyter-server-proxy) is +installed on the jupyter server, and use the proxied data server transformer: + +```python +alt.data_transformers.enable('data_server_proxied') +``` + +## Example + +[](https://mybinder.org/v2/gh/altair-viz/altair_data_server/master?urlpath=lab/tree/AltairDataServer.ipynb) +[](https://colab.research.google.com/github/altair-viz/altair_data_server/blob/master/AltairDataServer.ipynb) + +You can see this in action, as well as read some of the motivation for this +plugin, in the example notebook: [AltairDataServer.ipynb](AltairDataServer.ipynb). +Click the Binder or Colab links above to try it out in your browser. + +## Known Issues + +Because [jupyter-server-proxy](https://github.com/jupyterhub/jupyter-server-proxy) +requires at least Python 3.5, the methods described in +[Remote Systems](#remote-systems) do not work do not work for older versions of Python. + + + + +%prep +%autosetup -n altair-data-server-0.4.1 + +%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-altair-data-server -f filelist.lst +%dir %{python3_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Mon Apr 10 2023 Python_Bot <Python_Bot@openeuler.org> - 0.4.1-1 +- Package Spec generated @@ -0,0 +1 @@ +36f429aba034517006b83dafa63917bf altair_data_server-0.4.1.tar.gz |