This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2023-07-04
Channels
- # announcements (6)
- # babashka (5)
- # beginners (57)
- # biff (6)
- # business (32)
- # clj-together (1)
- # clojars (10)
- # clojure (56)
- # clojure-europe (76)
- # clojure-nl (4)
- # clojure-norway (40)
- # clojure-serbia (1)
- # clojure-spec (5)
- # clojure-uk (10)
- # clojurescript (3)
- # cursive (12)
- # data-science (1)
- # datascript (4)
- # datomic (35)
- # docs (4)
- # emacs (28)
- # events (5)
- # hyperfiddle (9)
- # matrix (1)
- # off-topic (28)
- # practicalli (4)
- # re-frame (14)
- # shadow-cljs (2)
- # testing (5)
Errors that I wanted to have when I run npm install
- "can't find the package", "Node version is invalid", "npm is outdated", etc.
Errors I get:
2695 error code ERR_INVALID_ARG_TYPE
2696 error The "from" argument must be of type string. Received undefined
and
npm ERR! ENOTEMPTY: directory not empty, rename '/tmp/lens-6.5.2/node_modules/acorn' -> '/tmp/lens-6.5.2/node_modules/.acorn-vsY6dw5f'
I haven’t done much nodejs stuff, or seen that error before; but I’ve found that wrong (old) versions of node/npm can look cryptic…
The wrong (new) versions are also cryptic too :rolling_on_the_floor_laughing:
wait that’s exactly what you’re saying, isn’t it? the error should have been more useful.
time to go down the bun rabbit hole 😉
Yes, I meant that using a newer NPM than what was expected, or an old one, they all cause cryptic errors 😄
yup I often thought I did so little js stuff I shouldn’t use nvm; but really, if there’s a .node-version or so it could help to just follow suit…
I remember someone telling me about a Clojure library that did something similar to this: https://github.com/3b1b/manim. Does that ring a bell for anyone here? If so, could you send me a link to the library?
Try #CQT1NFF4L 🙂
Ah thanks!
let us know if you find out, that sounds neat 🙂
It might be Emmy but probably not. An example: https://sritchie.github.io/clojure-conj-2023/notebooks/conj/quartic_well.html
I saw an interview with Grant Sanderson who lamented that people are just using manim, because the real value was gotten from building it
Turns out the repo they had in mind was simply mafs, though I guess it is CLJS. https://mafs.mentat.org/
https://emmy-viewers.mentat.org/ now wraps Mafs.cljs, MathBox.cljs and friends and exposes them from Clojure via Clerk or Portal. This is getting pretty powerful with Emmy compiling functions before they hit the cljs side!
I dropped a link in the other thread to one of the namespaces that’s fully interactive online… let me know what you’re looking to make and I’m happy to help!
Thank you! I'm writing an undergraduate mathematics textbook and was hoping to use the library to provide some animations to the students. 🙂
awesome, my work is steering more toward education for undergrad and below so please keep me in the loop
Ah very nice, a fellow enthusiast I see! I will make sure to keep you updated.
here is some interactive physics in the browser: https://emmy-viewers.mentat.org/dev/examples/simulation/ellipsoid/edit
This is very impressive, I would like to show some animations for simple harmonic oscillators and the like.
Ah and I see there are tutorials too, perfect! Thank you so much. 🙂
@U05CWBL3BQX I’ve been a bit busy and haven’t tackled the full docs task, but the main namespaces you’ll want to check out outside of the setup in these examples are https://cljdoc.org/d/org.mentat/emmy-viewers/0.2.0/api/emmy.mafs https://cljdoc.org/d/org.mentat/emmy-viewers/0.2.0/api/emmy.mathbox.components.plot
that has all the full 2d and 3d API… then the examples that I’ll tidy soon show how to extend these and add those interactive controls and stateful updates. anyway sorry to flood you with info, hope this is helpful!
No worries, thank you for the information, this makes things simpler and easier for me, thank you!