Skip to content

Unable to load some scripts in Notebook Renderer #117809

@DonJayamanne

Description

@DonJayamanne
  • VS Code Version:
  • OS Version:

Steps to Reproduce:

  1. Install Jupyter Extension
  2. Add a cell as follows
%%html
<script src="https://cdn.jsdelivr.net/npm/@tensorflow/tfjs@2.0.0"></script>
  1. Select a Python kernel & run this.
    FYI - In Jupyter this is a simple way to add HTML to the output (renderer).

This will add the above script tags to the renderer page.
Looking at the console logs, there are errors logged by VS Code

Here the output from the console log in the renderer tab

Uncaught Error: Can only have one anonymous define call per script file
    at r.enqueueDefineAnonymousModule (loader.js:1316)
    at p (loader.js:1803)
    at VM109 tfjs@2.0.0:17
    at VM109 tfjs@2.0.0:17
r.enqueueDefineAnonymousModule @ loader.js:1316
p @ loader.js:1803
(anonymous) @ tfjs@2.0.0:17
(anonymous) @ tfjs@2.0.0:17

Does this issue occur when all extensions are disabled?: N/A

@rebornix /cc

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions