Hi Didier, I am also looking for a good way to do that, and I don't have a definitive answer. But one idea is a classpath magic that loads a project.clj. Here's a plan (your input welcome): https://github.com/twosigma/beakerx/issues/5940
The alternative is to list the dependencies explicitly in the notebook. Here's a clojure notebook that uses a more basic classpath directive (that actually works not just being an idea): https://github.com/ twosigma/beakerx/blob/master/doc/contents/ClojureTutorial.ipynb BeakerX's classpath magic also has a maven version that works with clojars. This allows the dependencies to be explicitly listed in the notebook, which has advantages (I think that's Joe's point in the issue above). BeakerX.com ScottDraves.com twitter.com/Scott_Draves On Oct 17, 2017 8:55 PM, "Didier Amyot" <[email protected]> wrote: > Hi there, > > I am working on building a better kernel for clojure > <https://clojure.org/>. I need help regarding the handling of many > projects using a single kernel. My goal is to allow users to install a > single kernel that will be able to manage multiple projects that each have > their own set of dependencies. > > The build system for clojure is called leiningen <https://leiningen.org/> > (the command line interface is called lein) and is very similar to node’s > npm. The typical user will have many different projects each with a > different set of dependencies. I would like to be able to say to the > kernel “use the dependencies in directory X”. I expect the user to start > jupyter via leiningen via a command like lein jupyter notebook which in > node’s world would be equivalent to node_modules/.bin/jupyter notebook. > > I know I can hack my way around using environment variables but I am > wondering if there is a solution for this problem. I believe the problem > is general enough that I am sure someone somewhere thought of a solution. > > cheers! > > didier amyot > > -- > You received this message because you are subscribed to the Google Groups > "Project Jupyter" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To post to this group, send email to [email protected]. > To view this discussion on the web visit https://groups.google.com/d/ms > gid/jupyter/c4b36cac-ae17-4b6f-a808-277862be729d%40googlegroups.com > <https://groups.google.com/d/msgid/jupyter/c4b36cac-ae17-4b6f-a808-277862be729d%40googlegroups.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > -- You received this message because you are subscribed to the Google Groups "Project Jupyter" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/jupyter/CAMaD%2Bf6TYXG-fQVPw%2BToEwt2ZvMEpE6fpidDVQMrqV1H3LyTSA%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
