Giter VIP home page Giter VIP logo

gorilla-notebook's Introduction

Gorilla REPL

Gorilla is a rich REPL for Clojure in the notebook style. If you're interested you should take a look at its website.

This fork started out as a React migration experiment. Meanwhile it introduces a lot of significant changes. The overall goal is to expand use cases while keeping development fun.

There is an introductionary blogpost.

I tried really hard to remain backwards compatible and preserve existing functionality. Given the nature of reagent, this did not seem reasonably possible with regards to persisted html in worksheets. I ended up introducing version 2 persistence (transit based) while still supporting version 1 persistence (shamelessly discarding output). Other than that, the URLs have slightly changed. The viewer is at .../worksheet.html#/view now. You may want to try here in case you have it running with figwheel.

Development

./run-figwheel-with-jpda.sh

spins up the figwheel based development environment. The script uses rlwrap for convenience.

Alternatively, you can simply run

lein run -m clojure.main script/figwheel.clj

Once things runnig, you can jump in at either http://localhost:3449/worksheet.html for the app or http://localhost:3449/devcards.html if you want to play with devcards.

lein do cljsbuild once, run

compile cljs and run main entrypoint.

lein do clean, ring uberwar

should give you the standalone war file. Drop it into your servlet container and visit the root url of the webapp.

LEIN_SNAPSHOTS_IN_RELEASE=1 lein do clean, uberjar

should give you the all-in uberjar. It is used by the docker image and can be run executing java -jar target/gorilla-repl-ng-standalone.jar. It may also work dropped into a webapp (in WEB-INF/lib). Whether you are lucky or depends on the dependencies (if you run into conflicts). If all goes well, Gorilla REPL will appear at .../your-app-context/gorilla-repl/worksheet.html.

TODO : Explain delegation mode

In case you are unlucky, you might want to try Docker

lein do clean, install

add a dependency in your project and tweak dependencies until things work. This is what I do with lambdalf. Again, if things go well, gorilla REPL will appear at .../your-app-context/gorilla-repl/worksheet.html.

Contributing

Contributions, in the form of comments, criticism, bug reports, or code are all very welcome :-) If you've got an idea for a big change drop me an email so we can coordinate work.

Licence

Gorilla is licensed to you under the MIT licence. See LICENCE.txt for details.

Copyright © 2016- Jony Hudson, Andreas Steffan and contributors

Development

gorilla-notebook's People

Contributors

jonyepsilon avatar deas avatar cldellow avatar somethingelseentirely avatar matt-climate avatar jococo avatar tbrx avatar mikeivanov avatar scottdw avatar foogoof avatar stuarthalloway avatar dasmoth avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.