[racket] Small Inline Visualizations In DrRacket's REPL
I was forwarded a nice working sample from Grant Rettke. From a high
level, just build a snip% and display it.
On Wed, May 9, 2012 at 10:14 PM, Ray Racine <ray.racine at gmail.com> wrote:
> Say I have a modestly complex set of data contained in a standard Racket
> structure, e.g. (struct: Data ([...])). I'd like to define some sort of
> specialized pretty print (visualization) capability to be used withing
> DrRacket at the REPL level.
>
> So I'm working with some code in Dr Racket in the REPL.
>
> > (define data (Data ....)) ;; create a structure of data
>
> > (pretty-visualize data) ;; Either pops up some dialog with
> text/graphical visualization or is rendered by the REPL immediately below.
> ==================
> | Text
> | or 2-d Canvas
> | rendering here.
> |
> |
> ==================
>
> > |
>
> Say something along the lines one can see in the Professional Tables here.
> http://en.wikibooks.org/wiki/LaTeX/Tables
>
> I've been poking around in the DrRacket manual but haven't found any place
> to gain traction on something like this. Any pointers on here I should
> start reading?
>
> Thanks in advance.
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.racket-lang.org/users/archive/attachments/20120509/94eedb70/attachment-0001.html>