Fork me on GitHub
#cider
<
2016-01-11
>
blueberry10:01:38

@malabarba: @bozhidar: hi, the following question is not strictly about cider, but more a general emacs/clojure/java combination:

blueberry10:01:04

is it possible to embed a swing window into emacs buffer?

blueberry10:01:39

using elisp+cider+nrepl etc. + writing custom elisp, of course...

blueberry10:01:20

i work with some processing/quil sketches that display generated plots, and, while it is ok for me to use stand-alone swing windows as it is, it would be more useful to embed them into my emacs working environment.

blueberry10:01:55

i've read that one possibility is to generate svg/png and display that in buffers, but my sketches are very heavy, so I'm afraid that I need processing's opengl renderer, which rules out svg/png...

bozhidar11:01:26

don’t think this is possible

blueberry11:01:19

thanks. i was afraid so, but since i am an elisp n00b, it was better to check.

bozhidar11:01:07

one of my todo ideas to render inline images in the REPL

bozhidar11:01:16

and in dedicated results buffers

bozhidar11:01:21

this shouldn’t be very hard to do

bozhidar11:01:32

and similar tools like geiser (for scheme) already do it

blueberry11:01:02

my first thought was to render in a separate window is the image/diagram is large.

blueberry11:01:25

if the image is large

blueberry11:01:02

so if you implement that, I would be very happy.

blueberry11:01:38

too bad I am not nearly elisp proficient (just starting) to be able to contribute that myself

blueberry11:01:02

on the other hand, if that is too far on your list, who knows simple_smile

bozhidar15:01:40

I believe implementing this won’t be hard

bozhidar15:01:59

and in general we can provide special handling for other types of values as well

bozhidar15:01:16

the problem is that I’m extremely busy in the foreseeable future

bozhidar15:01:28

so it’s unlikely that I’ll get to work on this myself soon