Skip to content

[jupyter] use display.Javascript to embed custom JS code - #22522

Merged
linev merged 1 commit into
root-project:masterfrom
linev:jupyter_js
Jul 24, 2026
Merged

[jupyter] use display.Javascript to embed custom JS code#22522
linev merged 1 commit into
root-project:masterfrom
linev:jupyter_js

Conversation

@linev

@linev linev commented Jun 8, 2026

Copy link
Copy Markdown
Member

In previous implementation only display.HTML() with embed <script></script> was used. But depending from security settings jupyter or web browser blocks loading of such <script> inside HTML code. Therefore split cell output to display.HTML() and display.Javascript(). This clearly indicates that JS code wants to be embed and therefore security settings should not block output.

Can help to resolve issue in https://root-forum.cern.ch/t/64882/

In previous implementation only display.HTML with embed
<script></script> was used. But dependeing from security settings
jupyter or web browser blocks loading of such <script> tag directly.
Therefore split cell output to `display.HTML()` and `display.Javascript()`.
This clearly indicates that JS code wants to be embed
and therefore security settings should not block output.

Can help to resolve issue in https://root-forum.cern.ch/t/64882/
@github-actions

github-actions Bot commented Jun 8, 2026

Copy link
Copy Markdown

Test Results

    22 files      22 suites   3d 16h 25m 32s ⏱️
 3 859 tests  3 842 ✅   0 💤 17 ❌
77 159 runs  76 924 ✅ 218 💤 17 ❌

For more details on these failures, see this check.

Results for commit 431f0bd.

@dpiparo
dpiparo self-requested a review June 8, 2026 19:47

@dpiparo dpiparo left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks. Are backports needed?

@linev

linev commented Jul 24, 2026

Copy link
Copy Markdown
Member Author

@dpiparo

Backport is not needed - it is new feature and not bugfix.

@linev
linev merged commit cdd72e2 into root-project:master Jul 24, 2026
37 of 41 checks passed
@linev
linev deleted the jupyter_js branch July 24, 2026 11:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants