Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/pablrod/p5-devel-iperl-plugin-chart-plotly
Automatic display of plotly charts (Chart::Plotly::Plot objects) in Jupyter notebooks using Devel::IPerl kernel
https://github.com/pablrod/p5-devel-iperl-plugin-chart-plotly
chart jupyter-notebook-extension perl plotlyjs
Last synced: 7 days ago
JSON representation
Automatic display of plotly charts (Chart::Plotly::Plot objects) in Jupyter notebooks using Devel::IPerl kernel
- Host: GitHub
- URL: https://github.com/pablrod/p5-devel-iperl-plugin-chart-plotly
- Owner: pablrod
- Created: 2017-07-16T21:01:45.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2019-12-01T19:59:44.000Z (about 5 years ago)
- Last Synced: 2024-10-31T23:06:57.263Z (about 2 months ago)
- Topics: chart, jupyter-notebook-extension, perl, plotlyjs
- Language: Perl
- Size: 17.6 KB
- Stars: 2
- Watchers: 2
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Changelog: Changes
Awesome Lists containing this project
README
# NAME
Devel::IPerl::Plugin::Chart::PlotlyPod - Inline display of plotly charts in Jupyter notebooks using [Devel::IPerl](https://metacpan.org/pod/Devel%3A%3AIPerl) kernel
# VERSION
version 0.007
# SYNOPSIS
```perl
# In notebook
IPerl->load_plugin('Chart::Plotly');# Trace objects get displayed automatically
use Chart::Plotly::Trace::Scatter;
my $scatter_trace = Chart::Plotly::Trace::Scatter->new( x => [ 1 .. 5 ], y => [ 1 .. 5 ] );# Also Plot objects
use Chart::Plotly::Trace::Box;
use Chart::Plotly::Plot;my $x = [ 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3 ];
my $box1 = Chart::Plotly::Trace::Box->new( x => $x, y => [ map { rand() } ( 1 .. ( scalar(@$x) ) ) ], name => "box1" );
my $box2 = Chart::Plotly::Trace::Box->new( x => $x, y => [ map { rand() } ( 1 .. ( scalar(@$x) ) ) ], name => "box2" );
my $plot = Chart::Plotly::Plot->new( traces => [ $box1, $box2 ], layout => { boxmode => 'group' } );
```# DESCRIPTION
Plugin to display automatically [Chart::Plotly](https://metacpan.org/pod/Chart%3A%3APlotly) plot objects in [Jupyter notebooks](https://jupyter.org/) using kernel [Devel::IPerl](https://metacpan.org/pod/Devel%3A%3AIPerl)
The example above can be viewed in [nbviewer](https://nbviewer.jupyter.org/github/pablrod/p5-Chart-Plotly/blob/master/examples/jupyter-notebooks/BasicUse.ipynb)
This plugin is now integrated with [Chart::Plotly](https://metacpan.org/pod/Chart%3A%3APlotly) and this package is just a placeholder for backwards compatibility.
The repo can be found on [Chart::Plotly Github](https://github.com/pablrod/p5-Chart-Plotly)
# AUTHOR
Pablo Rodríguez González
# COPYRIGHT AND LICENSE
This software is Copyright (c) 2019 by Pablo Rodríguez González.
This is free software, licensed under:
```
The MIT (X11) License
```# CONTRIBUTOR
Roy Storey