EntropyOrg / p5-Devel-IPerl

:microscope::books: Perl5 language kernel for Jupyter <http://jupyter.org/>
http://p3rl.org/Devel::IPerl
93 stars 15 forks source link

pretty-print variables? #51

Open ghost opened 9 years ago

ghost commented 9 years ago

I know in IPerl we can use DDP or Data::Dumper and explicitly call p() or Dumper() to pretty-print variables. But can we make it behave like the reply or re.pl in that it automatically does pretty-print on entering a variable or evaluating an expression?

zmughal commented 9 years ago

I used to have this feature and I think maybe doing it now as a plugin is a very good idea.

I would like to think that doing something with the DisplayableHandler might help or just try to use an around method modifier with the Display plugin.

I'll think about it some more, but I won't be able to get to these issues until the end of this month. After that it'll be full steam ahead with many more features that I'm thinking of including this one. :-)