Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Duplication of <script> section on page with Output controls #288

Open
sok82 opened this issue Aug 15, 2024 · 0 comments
Open

Duplication of <script> section on page with Output controls #288

sok82 opened this issue Aug 15, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@sok82
Copy link
Contributor

sok82 commented Aug 15, 2024

Description

Whenever I place Output control on page and rerender it - it creates additional <script> tags on page i.e. I see multiple

<script data-jupyter-widgets-cdn-only="true"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/require.js/2.3.6/require.min.js"></script>

elements on page and number of these elements multiplies after each page rerender

Reproduce

  1. Place Output control inside Jupyter section on the page
  2. Load the page
  3. Check page source code with Developer console
  4. See
<script data-jupyter-widgets-cdn-only="true"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/require.js/2.3.6/require.min.js"></script>
  1. Initialize page rerender
  2. See something like
<script data-jupyter-widgets-cdn-only="true"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/require.js/2.3.6/require.min.js"></script>
<script data-jupyter-widgets-cdn-only="true"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/require.js/2.3.6/require.min.js"></script>
<script data-jupyter-widgets-cdn-only="true"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/require.js/2.3.6/require.min.js"></script>
<script data-jupyter-widgets-cdn-only="true"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/require.js/2.3.6/require.min.js"></script>

which number (my guess) depends on number of Output controos

@sok82 sok82 added the bug Something isn't working label Aug 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant