Skip to content

Clojure library to visualize tap>-ed values with a clerk notebook

Notifications You must be signed in to change notification settings

qrthey/clerk-tap

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Clerk-Tap

Clerk-Tap uses the amazing Clerk notebook library from Nextjournal to visualize clojure.core/tap>-ed values, in most-recent-first order.

Installation

Clerk-Tap is available on clojars.

Clojars Project

Usage

Clerk-Tap would typically not be included in produced artifacts, but only included in a dev profile/alias.

The following code requires the qrthey.clerk-tap.core namespace, and lists the most important functions in a comment block, ready to be evaluated when connected to a repl.

    (ns user
      (:require [qrthey.clerk-tap.core :as clerk-tap]))

    (comment

      (clerk-tap/start-clerk-tap :port 7788)
      (clerk-tap/stop-clerk-tap)
      (clerk-tap/keep-last 10)

    )
  • start-clerk-tap optionally takes a :port keyword argument. If this is ommitted, port 7777 is used by default. Invoking this function opens a browser window with the Clerk-Tap interface running on localhost. Once Clerk-Tap is running, use clojure.core/tap> to visualize value(s) of interest.
  • stop-clerk-tap stops the server and makes Clerk-Tap forget the values it has already observed.
  • keep-last takes a numeric argument and discards all but the last /n/ observed values.

About

Clojure library to visualize tap>-ed values with a clerk notebook

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published