java/beakerx support#140
java/beakerx support#140scottdraves wants to merge 3 commits intowidgetti:masterfrom twosigma:master
Conversation
|
Great, I also see you had to get some parts of ipywebrtc in. |
|
This seems to work nicely with Clojure: %classpath config resolver jitpack.io https://jitpack.io
%classpath add mvn com.github.twosigma:ipyvolume:lmitusinski~beakerx-widget-SNAPSHOT
(import ipyvolume.PyLab)
(defn ball
[size radius]
(let [data (make-array Float/TYPE size size size)
square #(* % %)
center #(- % (/ size 2))
sum (partial reduce +)
sum-of-squares #(sum (map square %))]
(doseq [i (range size)
j (range size)
k (range size)
:let [[x y z] (map center [i j k])]
:when (> (square radius)
(sum-of-squares [x y z]))]
(aset data i j k (float 1)))
data))
(PyLab/volShow (ball 32 12)) |
|
as soon as we get pythreejs working, will look into the test failure: |
|
I just fixed that, if you rebase against master it should work. |
|
thanks, it's green now. |
|
for distribution, jitpack does fine for the java part afaik. |
|
I've got compiled |
|
Did you install ipyvolume as well? Can you give me a link to a mybinder you are using for this? |
|
Yes, (locally) I did. I'm off my testing environment at the moment due to real life demands, however, I'm more than happy to provide a universal link to query virtually any notebook hosted on GitHub straight into myBinder environment (watching the 'Build logs' by clicking the 'show' link at the top would be a good thing to do as it hangs quite often): EDIT: I've just checked the myBinder image (finally!), and remembered that "no visuals" corresponds to not knowing how one needs to seduce the Groovy API into installing the |
e861e87 to
6dead3f
Compare
this works: https://github.com/twosigma/beakerx/blob/master/doc/groovy/3D.ipynb