This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2022-02-21
Channels
- # announcements (4)
- # architecture (161)
- # autochrome-github (7)
- # babashka (61)
- # beginners (42)
- # calva (24)
- # cider (22)
- # clj-kondo (28)
- # cljs-dev (8)
- # clojure (88)
- # clojure-art (2)
- # clojure-dev (7)
- # clojure-europe (43)
- # clojure-germany (2)
- # clojure-nl (2)
- # clojure-uk (4)
- # clojurescript (32)
- # core-async (41)
- # cursive (32)
- # datahike (6)
- # datomic (9)
- # emacs (22)
- # events (2)
- # fulcro (10)
- # graphql (1)
- # nextjournal (16)
- # off-topic (9)
- # overtone (1)
- # pathom (16)
- # polylith (5)
- # quil (7)
- # rdf (1)
- # re-frame (7)
- # reagent (22)
- # releases (2)
- # remote-jobs (1)
- # reveal (12)
- # sci (1)
- # shadow-cljs (12)
- # specter (20)
- # sql (6)
- # tools-deps (21)
- # vim (26)
- # xtdb (10)
What is the best way to make sure everything from *err*
and *out*
ends up in a Reveal ui? Is this possible?
Hmm, default reveal REPLs do that already, but I assume you are using non-default repl that does not forward prints to reveal...
I’m using Tutkain (Clojure plugin for Sublime text), which starts its own repl directly after connecting to a socket repl. Right now I’m connecting Tutkain to a plain socket repl and then run my own “Reveal repl” implementation on top of that:
(ns jlmr.socket-reveal
(:require
[clojure.core.server :as s]
[clojure.main :as m]
[vlaaad.reveal :as r]))
(defn- submit-eval-fn
[submit]
(fn [form]
(let [value (eval form)]
(submit value)
value)))
(defn repl
[]
(let [submit (r/ui)]
(add-tap submit)
(m/repl :init s/repl-init :read s/repl-read :eval (submit-eval-fn submit))))
I’m already talking with the author of Tutkain how I can get my hands on *out*
and *err*
, but assuming I get that done, what is the best way to forward those writers (?!) to Reveal?Hello! I’m looking to build a demo “batteries included” for using #reveal with the #sicmutils computer algebra system, and was curious if anyone had extended reveal to allow rendering forms as LaTeX ?
for example, symbolic equations are renderable as
• clojure data structures like (+ 'x 'lambda)
• latex, like "x + \lambda"
• infix strings, like x + λ
which is annoying in a normal REPL, where I can only access the data structure view. So I’d like to offer some plugin for reveal that says “render a Literal
as a LaTeX form”, or extend reveal to make that possible
There are of course more types in the language that could benefit from custom LaTeX renderings, or maybe something more interesting. polynomials, rational functions, power series, etc
Hey Sam! While the main output view in Reveal is monospace only, you can create different view based on JavaFX nodes, including web view
There is an example that integrates vega view here: https://vlaaad.github.io/vega-in-reveal
Thanks, I'll give it a look!