<div dir="ltr"><div>Hi, <br><br></div>I'll be trying to use Ipython Notebook in conjunction with google maps to calculate some spatial distributions (in python) and display (in javascript) results on a map. <br><div><div>

<div><br>I am looking for a way to attach static files to ipython notebook. I only found this question on StackOverflow: <a href="http://stackoverflow.com/questions/16852885/ipython-adding-javascript-scripts-to-ipython-notebook">http://stackoverflow.com/questions/16852885/ipython-adding-javascript-scripts-to-ipython-notebook</a>, which points me here. <br>

<br></div><div><b>What I have tried: </b><br></div><div><br></div><div>I've heard about ipython plugins, but I guess it is not what I want, because I don't want (yet) to create any generic solution. <br><br></div>

All my problems would also be solved if I could modify window object inside Javascript objects (like that): <br><br>from IPython.display import display,Javascript<br>Javascript("""bar = 5;""")<br>

Javascript("""alert(window.bar)""")<br><br></div><div>In this case I would just load javascript files by hand from python code. <br></div><div><div><br><b>What I would like to do: </b><br><ul>

<li>Ability to attach javascript files from local filesystem (may be relative to ipython notebook location, but I'm ok with absolute files. I'm totally ok with loading these files globally, without any package management system, but I may use proper package management if needed.(this is required). </li>

<li>I also would have some way to manipulate global javascript context (to change output displayed on the map). (this is required). </li><li>Have ability to reload these files (when I'm making changes in js during developement). By reload I mean execute contents of these files again. (this would be nice to have)<br>

</li><li>Ability to generate some javascript on the fly (I might need it, but if it is hard nevermind). </li></ul><p>If I overlook it in Ipython Notebook Manual please point me to appropriate chapter. <br></p>jb:)<br></div>

</div></div></div>