twosigma / beakerx

Beaker Extensions for Jupyter Notebook
http://BeakerX.com
Apache License 2.0
2.8k stars 381 forks source link

clojure dependencies support #5940

Open scottdraves opened 7 years ago

scottdraves commented 7 years ago

Clojure should have a magic to load dependencies from a project.clj file (lein).

it could be as simple as:

%classpath lein

which would read the project.clj file from the same directory as the ipynb. optional path:

%classpath lein path/to/directory
jpallas commented 7 years ago

I'm not saying this is a bad idea, but I wonder if this is a good direction, since it presumably leads to supporting SBT files for Scala, Gradle files for Groovy, Maven POMs for all the JVM kernels, etc. Are more than a handful of top-level dependencies likely to be needed, such that putting them in %classpath add mvn magics would be a nuisance? The idea of notebooks being self-contained (except for data sources) seems appealing to me.