%% javascript<div><br></div><div>That and the profile are the two most common methods for enabling custom js.  The previous method of embedding in Markdown is no longer allowed. </div><div><br></div><div>A<span></span><br>
<br>On Wednesday, May 7, 2014, David Ketcheson <<a href="mailto:dketch@gmail.com">dketch@gmail.com</a>> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr">I'd like to load some javascript into the notebook from a .js file that is not in my ipython profile directory.  This would allow me to distribute the notebook and the .js file together and have users get the benefit of the .js file in the notebook.<div>

<br></div><div>I know how to do the analogous thing with .css files, based on the content of the last cell in this notebook:</div><div><br></div><div><a href="http://nbviewer.ipython.org/github/barbagroup/AeroPython/blob/master/lessons/01_Lesson01_sourceSink.ipynb" target="_blank">http://nbviewer.ipython.org/github/barbagroup/AeroPython/blob/master/lessons/01_Lesson01_sourceSink.ipynb</a><br>

</div><div><br></div><div>How can I do the same for javascript?</div><div><br></div><div>-David</div></div>
</blockquote></div>