jupyterlab-chart-editor
TypeScript icon, indicating that this package has built-in type declarations

4.14.3 • Public • Published

jupyterlab-chart-editor

Binder

A JupyterLab extension for editing Plotly charts, based on https://github.com/plotly/react-chart-editor

Prerequisites

  • JupyterLab >= 1.2
  • plotly.py >= 4.4

Install

jupyter labextension install jupyterlab-chart-editor

Usage

Create and display a figure

import plotly.graph_objs as go
import plotly.io as pio

fig = go.Figure()
fig.add_scatter(y=[2, 4, 3, 2.5])
fig.show()

Write figure to JSON

pio.write_json(fig, 'scatter.plotly')

Right-click scatter.plotly from the file menu and open with "Plotly Editor". Make some changes to the figure, then use the file menu to save as scatter-styled.plotly.

Then import scatter-styled.plotly back into plotly.py

fig_styled = pio.read_json('scatter-styled.plotly')
fig_styled

Uninstall

jupyter labextension uninstall jupyterlab-chart-editor

Package Sidebar

Install

npm i jupyterlab-chart-editor

Weekly Downloads

68

Version

4.14.3

License

BSD-3-Clause

Unpacked Size

15.5 kB

Total Files

9

Last publish

Collaborators

  • plotly-mikesol
  • ndrezner
  • lconnors
  • alexshoe
  • t4rk
  • bronsolo
  • chriddyp
  • bpostlethwaite
  • alexcjohnson
  • antrg
  • archmoj
  • hammadtheone
  • nicolaskruchten
  • gnestor