Skip to content

Automatic display of plotly charts (Chart::Plotly::Plot objects) in Jupyter notebooks using Devel::IPerl kernel

Notifications You must be signed in to change notification settings

pablrod/p5-Devel-IPerl-Plugin-Chart-Plotly

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Automatic display of plotly charts (Chart::Plotly::Plot objects) in Jupyter notebooks using Devel::IPerl kernel

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages