Skip to content

Commit

Permalink
[jupyter] use batch mode for generated JSON
Browse files Browse the repository at this point in the history
Such mode is more robust

Aslo TPolyLine3D anf TF3 can be drawn without problems
  • Loading branch information
linev committed Oct 29, 2024
1 parent cc74fde commit 2c6f500
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bindings/jupyroot/python/JupyROOT/helpers/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
console.log("JupyROOT - %%cpp magic configured");
"""

_jsNotDrawableClassesPatterns = ["TEve*","TF3","TPolyLine3D"]
_jsNotDrawableClassesPatterns = ["TEve*"]

_jsCanvasWidth = 800
_jsCanvasHeight = 600
Expand Down Expand Up @@ -299,7 +299,7 @@ def produceCanvasJson(canvas):
canvas.Draw()

if TWebCanvasAvailable():
return ROOT.TWebCanvas.CreateCanvasJSON(canvas, 3)
return ROOT.TWebCanvas.CreateCanvasJSON(canvas, 23, True)

# Add extra primitives to canvas with custom colors, palette, gStyle

Expand Down

0 comments on commit 2c6f500

Please sign in to comment.