Here's one way:

Welcome to Racket v7.2.
> (require 2htdp/image racket/gui/base (only-in pict show-pict))
> (show-pict (empty-scene 100 100))

(The require of racket/gui/base seems to be needed for side-effect only, to
prevent a "racket/gui/base is not available" error. That seems like it
might be a bug.)

-Philip


On Sat, Mar 16, 2019 at 10:48 AM Marc Kaufmann <marc.kaufman...@gmail.com>
wrote:

> Hi,
>
> I am playing around with big-bang in 2htdp/universe and images in
> 2htdp/image. When I launch big-bang from racket on the cli (not DrRacket),
> it does somehow call a window and display the images with my render
> function. However, when I want to test the render functions, I want to run
> them separately in the cli, but can't figure out how to display images
> there. All I get is:
>
> > (require 2htdp/image)
> > (empty-scene 100 100)
> > (object:image% ...)
>
> How do I open a window from the repl on which I either continuously render
> again and again, or for each image a new such window is opened? How does
> big-bang do it - that is maybe the way I should do it too?
>
> Thanks,
> Marc
>
> --
> You received this message because you are subscribed to the Google Groups
> "Racket Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to racket-users+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Racket Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to racket-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to