Just add the following to your ~/.lein/profiles.clj
{:user {:plugins [[org.pinkgorilla/lein-pinkgorilla "0.0.17"]]}}
To use PinkGorilla in one of your Leiningen projects, add the following to the :plugins section of that project’s project.clj file:
[lein-pinkgorilla "0.0.17"]
Your completed project.clj file might look something like this:
(defproject your-demo "0.1.0-SNAPSHOT"
:description "A demo project for PinkGorilla Notebook."
:dependencies [[org.clojure/clojure "1.10.0"]]
:main ^:skip-aot demo.core
:target-path "target/%s"
:plugins [[org.pinkgorilla/lein-pinkgorilla "0.0.17"]]
:profiles {:uberjar {:aot :all}})
lein notebook
runs the notebook. It can be run either
via user profile install, or as plugin inside your project.clj. If you
use it inside your project, the repl will have your additional
dependences available in the notebook witout haing to use add-dependency
.
See configuration below.
Convert Jupyter / Clojure files to pinkgorilla notebook:
lein pinkgorilla nbconvert demo.ipynb
lein nbconvert demo.clj
lein relay
runs an nrepl relay without any other frontend.
Usful for testing.
lein goldly
runs the goldly app.
We ship a default configuration, which you can run out-of-the-box - no need to make changes! But if you want to change the configuration, you have several options:
lein nbconfig --help
to see available commandline optionsRun lein nbconfig
to see the current configuration. If you did not make any
changes yet, then this will give you an idea which options you might want to override.
If you already made canges to the configuration, it allows you to check if your configuration options did get applied correctly.
If you are a developer and want to rebuild the default config, then lein defaultconfig
ran inside the leiningen project will do the job.
Can you improve this documentation?Edit on GitHub
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close