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

Cannot load custom js with <script> on version 6.x #7325

Open
CnBDM-Su opened this issue Apr 17, 2024 · 3 comments
Open

Cannot load custom js with <script> on version 6.x #7325

CnBDM-Su opened this issue Apr 17, 2024 · 3 comments
Labels
bug status:Needs Info status:Needs Triage Applied to issues that need triage

Comments

@CnBDM-Su
Copy link

I use IPython HTML to load custom js like
HTML(<script>custom js content</script>) works well in notebook on version 5.x and 7.x.
But fail in 6.x.

The IPython HTML cannot find it. when I call it, it shows xxx not defined in console.
image

Does anyone know how to solve this without change the version of notebook?
Is there specific load custom js approach for version 6.x?

Thanks

@CnBDM-Su CnBDM-Su added bug status:Needs Triage Applied to issues that need triage labels Apr 17, 2024
@RRosio
Copy link
Collaborator

RRosio commented Apr 23, 2024

Hi @CnBDM-Su can you share which version of Notebook 6 you are experiencing this problem with?

@CnBDM-Su
Copy link
Author

CnBDM-Su commented May 6, 2024

@RRosio 6.4.0

@RRosio
Copy link
Collaborator

RRosio commented May 7, 2024

Thank you for the update @CnBDM-Su, have you also used the display function from IPython.display? On my end, using Notebook 6.5.7 wrapping the HTML function call in a display() works as expected.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug status:Needs Info status:Needs Triage Applied to issues that need triage
Projects
None yet
Development

No branches or pull requests

2 participants