Registry / data / chart-studio

chart-studio

JSON →
library1.1.0pypypi✓ verified 88d ago

Utilities for interfacing with plotly's Chart Studio service. Deprecated alternative to the Plotly Express / plotly.graph_objects + plotly.io approach. Version 1.1.0 is the final release; package is in maintenance mode.

pip install chart-studio
INSTALL
IMPORT
SIG · CHART-STUDIO
C
chart-studio
datapythonv1.1.0
Install
4.6s avg
Import
106ms
Disk
93MB
Pass rate
10/ 10
Env Coverage10 / 10
glibc
3.9–3.13
musl
3.9–3.13
Install & Compatibility
Where this runs
tested against v1.1.0 · pip install
no network on importno background threads
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
py 3.10–3.95 runs
installs and imports cleanly · install 0.0s · import 0.112s · 92.9MB
glibc
py 3.10–3.95 runs
installs and imports cleanly · install 4.6s · import 0.100s · 93MB
93MB installed
● package 93MB
Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

plotly
✓ import plotly
✗ import chart_studio.plotly as py
chart_studio.plotly is the legacy Chart Studio interface; prefer plain plotly for offline charts.
plotly_plotly
✓ from chart_studio import plotly as py
✗ import plotly.plotly as py
plotly.plotly was removed after plotly v2. Use chart_studio.plotly for legacy chart_studio users.
plotly_credentials
✓ from chart_studio import plotly as py py.sign_in(username, api_key)
✗ plotly.tools.set_credentials_file()
Credentials are now managed via chart_studio.

Basic example: set credentials and upload a figure to Chart Studio.

import chart_studio import chart_studio.plotly as py import plotly.graph_objects as go chart_studio.tools.set_credentials_file(username='your_username', api_key='your_api_key') fig = go.Figure(data=go.Bar(y=[2, 3, 1])) py.plot(fig, filename='basic-bar', auto_open=True)
Debug
Known issues
deprecatedchart-studio is in maintenance mode. The primary plotly package now includes Chart Studio upload via plotly.io.write_html() or using Plotly Express with the `url` parameter. Avoid new projects depending on chart-studio.
fix
Use `pip install plotly` and `plotly.io.write_html()` or `plotly.io.to_html()` for offline usage. For Chart Studio uploads, consider the new Plotly Chart Studio API: https://plotly.com/python/chart-studio/
affects: all
breakingchart_studio.plotly.sign_in() requires a valid Chart Studio account and API key. Using invalid credentials leads to HTTP 401 errors.
fix
Set valid credentials via chart_studio.tools.set_credentials_file() before calling any upload function.
affects: all
gotchaImporting from chart_studio.plotly overrides the top-level plotly module's plot function. This can break code that expects the offline plotly.plot() behavior.
fix
Use explicit module references: `import chart_studio.plotly as py` and then `py.plot(fig)` vs `plotly.io.show(fig)`.
affects: all
Errors
Common errors & fixes
AttributeError: module 'plotly' has no attribute 'plotly'
Migrating from old plotly (pre-v3) to newer versions: 'plotly.plotly' was removed. Use chart_studio.plotly for Chart Studio functionality.
fix
Replace `import plotly.plotly as py` with `from chart_studio import plotly as py`.
ImportError: cannot import name 'plotly' from 'chart_studio' (unknown location)
chart_studio package not installed or version mismatch.
fix
Run `pip install chart-studio` to install the package.
HTTPError: 401 Client Error: Unauthorized for url: https://api.plot.ly/v2/...
Credentials are missing, invalid, or expired.
fix
Set credentials: `chart_studio.tools.set_credentials_file(username='your_username', api_key='your_api_key')`. Obtain API key from https://plotly.com/settings/api.
Upgrade
Version history
1.1.0latest on PyPI · released Apr 1, 2020
Audit
Dependencies

No dependency data recorded yet.

Agent activity
10 hits · last 30 days
node
8
Amazon
1
OpenAI (training)
1
Resources
chart-studio — pip install chart-studio · libregistry