Jupyter - Is the output canvas redirectable?

Hey there,

I would like to create plots in jupyter ROOT notebooks without showing the canvas.Draw() commands. Is it possible to redirect the output of a cell to a different cell (possibly a markdown one)? Is there a workaround for it?

Cheers,
Adam Hunyadi

Hi Adam,

it is presently not possible to redirect the output to a markdown cell. What can be done is to use the TCanvas::Print method to create an image and then pick it up in the markdown.

Cheers,
D

And can I call TCanvas::Print() without creating a separate external file (eg. can the output be stored only as an embedded html element)?

Not directly. Perhaps using StringIO.

Hi,

I think we do not provide this functionality yet.

Cheers,
D

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.