Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

import javascript files in ipython notebook to create a custom widget

I'm newer in "ipython notebook" and I would to create a custom widget with ipywidgets using html and javascript. I'm using a javascript library and I wanna know if there is a way to import it inside ipython notebook.

thank u in advance

like image 216
DevDev Avatar asked Jul 31 '26 15:07

DevDev


1 Answers

I found the solution you just need the put the file somewhere in your machine and then use the magic cell HTML like this:

%%HTML
<script src="path-to-your-file"></script>
like image 69
DevDev Avatar answered Aug 02 '26 05:08

DevDev



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!