New InterpreterResults needs to be handled both on front and backend.
(Front is doing different actions depending on type with if else). For svg,
its nothing more than an html tag to be added to the page (which is what is
done when result type is HTML), so if you send type HTML instead of SVG, it
should work.
On Aug 5, 2015 7:46 PM, "Amos B. Elberg" <[email protected]> wrote:

> I'm creating a new InterpreterResult with <svg>stuff</svg> as the message,
> SUCCESS as the code, and SVG as the type. The interface is picking up the
> result SUCCESS and showing that the note was properly executed. But no
> result is displayed.
>
> I can try type HTML tonight, although if that's the issue then code SVG
> should probably come out of InterpreterResult. (Am I the only one using
> those codes?)
>
> Saw your other email about xpath and I don't know the answer.
>
> > On Aug 5, 2015, at 1:14 PM, Corneau Damien <[email protected]> wrote:
> >
> > You return something like that?
> >
> > %html <svg>....<svg>
> >> On Aug 5, 2015 4:44 PM, "Amos B. Elberg" <[email protected]> wrote:
> >>
> >> I'm returning a string bracketed in <svg></svg> tags. is this not what I
> >> should be doing?
> >>
> >>>> On Aug 5, 2015, at 9:57 AM, Felix Cheung <[email protected]>
> >>> wrote:
> >>>
> >>> Are you wrapping SVG in HTML?
> >>>
> >>>
> >>>
> >>>
> >>>
> >>>
> >>>> On Wed, Aug 5, 2015 at 6:53 AM -0700, "Amos B. Elberg" <
> >>> [email protected]> wrote:
> >>> Are other folks able to return images in SVG format, with the SVG type
> >> code, and see the result displayed in the interface?
> >>>
> >>> I'm working on the R interpreter(s) and I have jpgs working, HTML
> >> working, SVG embedded in HTML working, returning data in %table format
> >> working, D3 embedded in HTML mostly works, advanced visualizations with
> >> Google HTML widgets are starting to work, but for SVG returned as its
> own
> >> InterpreterResult, nothing is displayed in the browser.
> >>
>

Reply via email to