- Update to 4.0.0 + Updated * Updated Plotly.js to version 1.48.3. + Added * The Plotly Express tech preview has been integrated as the `plotly.express` module * Added a new renderers framework the supports rendering figure in a wide variety of contexts. See the new Displaying Plotly Figures documentation page for more information. * Added `plotly.io.write_html` and `plotly.io.to_html` functions for exporting figures to HTML. Also available as `.write_html` and `.to_html` figure methods. * Added new figure methods for batch updating figure properties (`update_layout`, `update_traces`, `update_xaxes`, etc.). See the new Creating and Updating Figures documentation page for more details. * Added support for all trace types in `make_subplots` * Added support for secondary y-axes in `make_subplots` * Support passing a scalar trace object (rather than a list or tuple of trace objects) as the `data` property to the `Figure` constructor * Added dictionary-stule `.pop` method to graph object classes * New `jupyterlab-plotly` JupyterLab extension for rendering figures in JupyterLab. Replaces the `@jupyterlab/plotly-extension` extension, and includes JupyterLab 1.0 support. * Added new suite of built-in colorscales to the `plotly.colors` module, and support for specifying this wide range of colorscales by name. Also added support for specifying colorscales as a list of colors, in which case the color spacing is assumed to be uniform. * Added `sphinx-gallery` renderer for embedding plotly figures in Sphinx-Gallery. + Removed * The follow modules for interfacing with the Chart Studio cloud service have been removed from plotly.py and moved to the new `chart-studio` distribution package. The following modules have been moved to a new top-level `chart_studio` module: > `plotly.plotly` -> `chart_studio.plotly` > `plotly.api` -> `chart_studio.api` > `plotly.dashboard_objs` -> `chart_studio.dashboard_objs` > `plotly.grid_objs` -> `chart_studio.grid_objs` > `plotly.presentation_objs` -> `chart_studio.presentation_objs` * The legacy `plotly.widgets.GraphWidget` class for displaying online figures hosted by Chart Studio as ipywidgets has been removed. Please use the offline, and much more capable, `plotly.graph_objects.FigureWidget` class instead. * The `fileopt` argument to `chart_studio.plotly.plot` has been removed, so in-place modifications to previously published figures are no longer supported, and a figure will always overwrite a figure with the same name. + Changed * The `'plotly'` template is used as the default theme across all figures. * In order to reduce the size of the core `plotly` distribution package, the bundled geographic shape files used by the `create_choropleth` figure factory have been moved to a new optional `plotly-geo` distribution package * For consistency with other figure factories, the `create_choropleth` and `create_gantt` figure factories now always returns `Figure` objects, rather than dictionaries. * Figure add trace methods (`.add_trace`, `.add_traces`, `.add_scatter`, etc.) now return a reference to the calling figure, rather than the newly created trace * `plotly.tools.make_subplots` has been moved to `plotly.subplots.make_subplots`, though it is still available at the previous location for backward compatibility * The `plotly.graph_objs` module has been moved to `plotly.graph_objects`, though it is still available at the previous location for backward compatibility * Trace `uid` properties are only generated automatically when a trace is added to a `FigureWidget`. When a trace is added to a standard `Figure` graph object the input `uid`, if provided, is accepted as is. * `datetime` objects that include timezones are not longer converted to UTC * When a tuple property (e.g. `layout.annotations`) is updated with a list/tuple that is longer than the current value, the extra elements are appended to the end of the tuple. + Fixed * Fixed visibility of `bar` trace error bars in built-in templates OBS-URL: https://build.opensuse.org/request/show/718605 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-plotly?expand=0&rev=8
136 lines
4.7 KiB
RPMSpec
136 lines
4.7 KiB
RPMSpec
#
|
|
# spec file for package python-plotly
|
|
#
|
|
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
|
|
#
|
|
# All modifications and additions to the file contributed by third parties
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
# upon. The license for this file, and modifications and additions to the
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
# license for the pristine package is not an Open Source License, in which
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
# published by the Open Source Initiative.
|
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
|
#
|
|
|
|
|
|
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
|
Name: python-plotly
|
|
Version: 4.0.0
|
|
Release: 0
|
|
Summary: Library for collaborative, interactive, publication-quality graphs
|
|
License: MIT
|
|
Group: Development/Languages/Python
|
|
Url: https://github.com/plotly/plotly.py
|
|
Source: https://files.pythonhosted.org/packages/py2.py3/p/plotly/plotly-%{version}-py2.py3-none-any.whl
|
|
BuildRequires: %{python_module decorator >= 4.0.6}
|
|
BuildRequires: %{python_module devel}
|
|
BuildRequires: %{python_module ipython}
|
|
BuildRequires: %{python_module ipywidgets}
|
|
BuildRequires: %{python_module nbformat >= 4.2}
|
|
BuildRequires: %{python_module notebook}
|
|
BuildRequires: %{python_module pip}
|
|
BuildRequires: %{python_module pytz}
|
|
BuildRequires: %{python_module requests}
|
|
BuildRequires: %{python_module retrying >= 1.3.3}
|
|
BuildRequires: %{python_module six}
|
|
BuildRequires: fdupes
|
|
BuildRequires: python-rpm-macros
|
|
Requires: python-decorator >= 4.0.6
|
|
Requires: python-pytz
|
|
Requires: python-requests
|
|
Requires: python-retrying >= 1.3.3
|
|
Requires: python-six
|
|
Recommends: python-matplotlib >= 1.3.1
|
|
Recommends: python-numpy
|
|
Recommends: python-pandas
|
|
BuildArch: noarch
|
|
%python_subpackages
|
|
|
|
%description
|
|
Use this package to make collaborative, interactive,
|
|
publication-quality graphs from Python on https://plot.ly.
|
|
|
|
Plotly is an online collaborative data analysis and graphing tool. The
|
|
Python API allows you to access all of Plotly's functionality from Python.
|
|
Plotly figures are shared, tracked, and edited all online and the data is
|
|
always accessible from the graph.
|
|
|
|
%package jupyter
|
|
Summary: Jupyter notebook integration for %{name}
|
|
Group: Development/Languages/Python
|
|
Requires: %{name} = %{version}
|
|
Requires: jupyter-plotly = %{version}
|
|
Requires: python-ipython
|
|
Requires: python-ipywidgets
|
|
Requires: python-nbformat >= 4.2
|
|
Requires: python-notebook
|
|
%ifpython2
|
|
Requires: python3-plotly-jupyter = %{version}
|
|
%endif
|
|
|
|
%description jupyter
|
|
Use this package to make collaborative, interactive,
|
|
publication-quality graphs from Python on https://plot.ly.
|
|
|
|
Plotly is an online collaborative data analysis and graphing tool. The
|
|
Python API allows you to access all of Plotly's functionality from Python.
|
|
Plotly figures are shared, tracked, and edited all online and the data is
|
|
always accessible from the graph.
|
|
|
|
This package provides Jupyter Notebook integration and widgets.
|
|
|
|
%package -n jupyter-plotly
|
|
Summary: Jupyter notebook integration for %{name}
|
|
Group: Development/Languages/Python
|
|
Requires: jupyter-ipython
|
|
Requires: jupyter-ipywidgets
|
|
Requires: jupyter-nbformat >= 4.2
|
|
Requires: jupyter-notebook
|
|
Requires: python3-plotly-jupyter = %{version}
|
|
|
|
%description -n jupyter-plotly
|
|
Use this package to make collaborative, interactive,
|
|
publication-quality graphs from Python on https://plot.ly.
|
|
|
|
Plotly is an online collaborative data analysis and graphing tool. The
|
|
Python API allows you to access all of Plotly's functionality from Python.
|
|
Plotly figures are shared, tracked, and edited all online and the data is
|
|
always accessible from the graph.
|
|
|
|
This package provides Jupyter Notebook integration and widgets.
|
|
|
|
%prep
|
|
%setup -c -T
|
|
|
|
%build
|
|
# Not Needed
|
|
|
|
%install
|
|
%python_expand pip%{$python_bin_suffix} install --root=%{buildroot} %{SOURCE0}
|
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
|
|
|
%jupyter_move_config
|
|
|
|
cp %{buildroot}%{python_sitelib}/plotly-%{version}.dist-info/LICENSE.txt .
|
|
|
|
%files %{python_files}
|
|
%license %{python_sitelib}/plotly-%{version}.dist-info/LICENSE.txt
|
|
%{python_sitelib}/_plotly_future_/
|
|
%{python_sitelib}/_plotly_utils/
|
|
%{python_sitelib}/plotly/
|
|
%{python_sitelib}/plotly-%{version}.dist-info/
|
|
|
|
%files %{python_files jupyter}
|
|
%license LICENSE.txt
|
|
%{python_sitelib}/plotlywidget/
|
|
|
|
%files -n jupyter-plotly
|
|
%license LICENSE.txt
|
|
%{_jupyter_nbextension_dir}/plotlywidget/
|
|
%config %{_jupyter_nb_notebook_confdir}/plotlywidget.json
|
|
|
|
%changelog
|