Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 17cf071

Browse filesBrowse files
authored
V4 alpha 2 release (plotly#1620)
* package metadata updates * conda recipe updates * package-lock update * Add plotly express datasets as package data * chart_studio -> chart-studio in error message * auto-import tools below chart_studio
1 parent 1c5ba64 commit 17cf071
Copy full SHA for 17cf071

File tree

Expand file treeCollapse file tree

4 files changed

+18
-4
lines changed
Filter options
Expand file treeCollapse file tree

4 files changed

+18
-4
lines changed
+7-1Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,8 @@
11
from __future__ import absolute_import
2-
from chart_studio import (plotly, dashboard_objs, grid_objs, session)
2+
from chart_studio import (
3+
plotly,
4+
dashboard_objs,
5+
grid_objs,
6+
session,
7+
tools,
8+
)

‎packages/python/plotly/_plotly_future_/__init__.py

Copy file name to clipboardExpand all lines: packages/python/plotly/_plotly_future_/__init__.py
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ def _chart_studio_warning(submodule):
4141
def _chart_studio_error(submodule):
4242
raise ImportError("""
4343
The plotly.{submodule} module is deprecated,
44-
please install the chart_studio package and use the
44+
please install the chart-studio package and use the
4545
chart_studio.{submodule} module instead.
4646
""".format(submodule=submodule))
4747

‎packages/python/plotly/plotly/data/__init__.py

Copy file name to clipboardExpand all lines: packages/python/plotly/plotly/data/__init__.py
+7-1Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,4 +75,10 @@ def _get_dataset(d):
7575
import pandas
7676
import os
7777

78-
return pandas.read_csv(os.path.join(os.path.dirname(__file__), d + ".csv.gz"))
78+
return pandas.read_csv(
79+
os.path.join(
80+
os.path.dirname(os.path.dirname(__file__)),
81+
'package_data',
82+
'datasets',
83+
d + ".csv.gz")
84+
)

‎packages/python/plotly/setup.py

Copy file name to clipboardExpand all lines: packages/python/plotly/setup.py
+3-1Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -437,7 +437,9 @@ def run(self):
437437
'_plotly_utils',
438438
'_plotly_future_',
439439
] + graph_objs_packages + validator_packages,
440-
package_data={'plotly': ['package_data/*', 'package_data/templates/*'],
440+
package_data={'plotly': ['package_data/*',
441+
'package_data/templates/*',
442+
'package_data/datasets/*'],
441443
'plotlywidget': ['static/extension.js',
442444
'static/index.js']},
443445
data_files=[

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.