Modules With Juliabox

I am using juliabox to write code for the Nonlinear Dynamics course over at the complexity explorer. The complexity explorer is a project setup by the Santa-Fe institute. Check it out. It’s awesome.

I like to call nonlinear dynamics “blobby-math.” I am so stoked about the class!

Anyway I want to use the new-ish scientific computing language Julia. And I wrote a few functions that make sense as a module, and I want to now import that module in another file in juliabox. How to do??

Here is what I found:

  1. Import the NBInclude Package
  2. Use the nbinclude to include your jupyter (.ipynb) file
using NBInclude
using name_of_your_file

It worked! Took me a bit to realize that it actually was that easy! The nbinclude() will run all the cells in your jupter file. Julia’s module documentation.

Written on September 11, 2017