Socket
Book a DemoInstallSign in
Socket

jupyterlab-chart-editor

Package Overview
Dependencies
Maintainers
17
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

jupyterlab-chart-editor

A JupyterLab extension for creating and editing Plotly charts

latest
Source
npmnpm
Version
4.14.3
Version published
Weekly downloads
6
-75%
Maintainers
17
Weekly downloads
 
Created
Source

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

Keywords

jupyter

FAQs

Package last updated on 10 Mar 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts