Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
    bayanbatn
    @bayanbatn
    hello world
    Tom McLaughlin
    @thomasjm
    hello
    bayanbatn
    @bayanbatn
    how now brown cow?
    Drew O'Kane
    @drewokane
    In regards to Clojure support, what if I want to use third party packages, say Specter for example? Right now it seems like you have to stick with base Clojure since the code is evaluated using the ipython-clojure kernel in jupyter.
    Tom McLaughlin
    @thomasjm
    hi @drewokane -- well, you have terminal access to the sandbox. i'm not sure exactly how to install a package that ipython-clojure will pick up. let me see...
    Tom McLaughlin
    @thomasjm
    i made a lein project, added specter, and did lein deps, and it seems to have put a jar file in ~/.m2. i'm not quite sure how to make clojure use it
    Drew O'Kane
    @drewokane
    in theory if you started an nREPL session you could connect to it
    (I'm speaking more from inexperience here)
    Tom McLaughlin
    @thomasjm
    so, here's a gross thing you can do in the terminal:
    cp -r /tools/clojupyter ~/
    (edit project.clj to add your dependency)
    make && make install
    (kill the existing clojure interpreter if it exists and run your code again)
    Drew O'Kane
    @drewokane
    hmm, let me try that
    Drew O'Kane
    @drewokane
    Success!
    Tom McLaughlin
    @thomasjm
    nice!
    Drew O'Kane
    @drewokane
    So if I ever want access to a particular package, I need to add it to the project.clj and recompile
    Tom McLaughlin
    @thomasjm
    i think so -- we should raise an issue with Clojupyter about this, since there should really be an easier way
    probably just a way to add things to the classpath
    Drew O'Kane
    @drewokane
    I agree
    I would imagine that you could somehow diff the clojupyter kernel project.clj and an app's project.clj and just add the missing ones
    Tom McLaughlin
    @thomasjm
    ideally the solution would not involve recompiling clojupyter, since its dependencies should have nothing to do with your app's dependencies. such a step isn't necessary with other kernels such as Python
    anyway, hope that unblocks you to do cool things in your document :)
    Drew O'Kane
    @drewokane
    yeah thanks for the input!