Skip to content
Automatic display of plotly charts (Chart::Plotly::Plot objects) in Jupyter notebooks using Devel::IPerl kernel
Perl
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
examples
lib/Devel/IPerl/Plugin/Chart
.gitignore
.perltidyrc
Changes
README.md
dist.ini
weaver.ini

README.md

NAME

Devel::IPerl::Plugin::Chart::PlotlyPod - Inline display of plotly charts in Jupyter notebooks using Devel::IPerl kernel

VERSION

version 0.007

SYNOPSIS

# 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 plot objects in Jupyter notebooks using kernel Devel::IPerl

The example above can be viewed in nbviewer

This plugin is now integrated with Chart::Plotly and this package is just a placeholder for backwards compatibility.

The repo can be found on Chart::Plotly Github

AUTHOR

Pablo Rodríguez González pablo.rodriguez.gonzalez@gmail.com

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 kiwiroy@users.noreply.github.com

You can’t perform that action at this time.