KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
As a part of a project, I need to embedd some javascripts inside an IPython module. This is what I want to do: from IPython.display import display,Javascript Javascript('echo("sdfds");',lib='/home/student/Gl.js') My Gl.js looks like this function echo(a){ alert(a); } Is there some way so that I can embed "Gl.js" and other such external scripts inside the notebook, such that I dont have to include them as 'lib' argument everytime I try to execute some Javascript code which requires to that library.
Tags (comma-separated)
Save Edits
Cancel