This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2023-06-27
Channels
- # announcements (10)
- # aws (5)
- # babashka (91)
- # beginners (15)
- # biff (3)
- # calva (5)
- # clerk (24)
- # cljdoc (63)
- # clojure (69)
- # clojure-denver (1)
- # clojure-europe (13)
- # clojure-nl (1)
- # clojure-norway (50)
- # clojure-uk (2)
- # clojurescript (2)
- # community-development (6)
- # cursive (3)
- # datomic (4)
- # events (2)
- # fulcro (8)
- # gratitude (1)
- # hyperfiddle (19)
- # jobs-discuss (36)
- # nbb (21)
- # pathom (16)
- # portal (6)
- # re-frame (14)
- # reagent (1)
- # reitit (1)
- # releases (3)
- # remote-jobs (2)
- # shadow-cljs (56)
- # sql (15)
cross-posting some new powerful abilities for Clerk: https://clojurians.slack.com/archives/C06MAR553/p1687824938993259
clerk-specific getting started info: https://emmy-viewers.mentat.org/#quickstart-via-clerk
For some reason my Plotly graphs are just not updating, even though I've confirmed in the REPL that my values are different
It seems stuck on the old graph for some reason
Blowing away my .clerk
fixed it.
happened to me before. try disabling caching for the chart
Is that a plotly option or a clerk one?
Yup, that fixed it!
Specifically ^::clerk/no-cache
Clerk uses both Clojure and Clojurescript. Can you describe your use case? We might be able to find something that works for it.
I am generating SVG graphics directly within the system. In Clojure, I aim for these to appear as static images. However, for the ClojureScript part, I would like these SVGs to be interactive, responding to touch and mouse input. The challenge I'm facing is that when I run the notebook in Clerk, it seems to display only the static Clojure version, as far as I can tell.
You can create a viewer that gets run on the browser side and communicates with the JVM through a websocket. That’s how things like Emmy’s interactive viewers work: https://clojurians.slack.com/archives/C06MAR553/p1687824938993259
You can see a simple example using a “sync” atom (whose state is automatically synchronized between the front and back ends) in this thread: https://clojurians.slack.com/archives/C035GRLJEP8/p1687533657002039
I see. The atoms in question are in the implementation and not in the notebook itself. I will read up on these links and see if I can make it work.
You would create an atom in your notebook that’s decorated with some metadata that indicates to clerk that it should be sync’d. If you take a look at Martin’s answer in the thread I just posted you’ll see what I mean. We’ll hopefully get this part of Clerk documented in the Book of Clerk pretty soon 🙂
@U0B1SDL67 can't help on the clerk side but vary curious in what your doing and how with svg's, I have an app which does exactly this it reactive drawing on the frontend but can also generates the svg's on the backend and can output jpeg or png images to share. mainly curious on the libraries / tools your using to accomplish this your end if that's something you don't mind sharing ?
@UU67HFS2X I'm making a graph library 🙂