Liking cljdoc? Tell your friends :D

PinkGorilla Notebook Encoding GitHub Actions status |pink-gorilla/notebook-encodingClojars Project

Convert the notebook datastructure in memory to/from string. The string gets read/written to the .cljg notebook files.

Features

  • Storage Backends: file, github repo, github gist
  • Formats: pinkgorilla (v1/v2), jupyter, clj (import)
  • parsing works on clj and cljs

Unit Tests

clj:

lein test
lein test :only pinkgorilla.notebook.new-notebook

Tests going to github need credential file: test/creds.edn. There is is a sample-creds.edn to copy for convenience.

cljs:

lein test-js

.clj -> Notebook Converter

lein convert /tmp/import-test.clj

clj code in /tmp/import-test.clj will be saved as a pink-gorilla notebook to /tmp/import-test.cljg

You might want to add an alias to ~/.bashrc

alias nbconvert="cd /home/andreas/Documents/gorilla/notebook-encoding && lein convert"

Todo:

  • add spec from notebook here
  • extract clojure / clojurescript routine move here from notebook
  • cli utility to test all notebooks ?

Can you improve this documentation? These fine people already did:
awb99 & Andreas Steffan
Edit on GitHub

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close