https://github.com/saulshanabrook/clojure-kernel
Clojure kernel for Jupyter that uses Leiningen
https://github.com/saulshanabrook/clojure-kernel
clojure jupyter-kernels
Last synced: 4 months ago
JSON representation
Clojure kernel for Jupyter that uses Leiningen
- Host: GitHub
- URL: https://github.com/saulshanabrook/clojure-kernel
- Owner: saulshanabrook
- License: mit
- Created: 2017-08-29T16:11:25.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2017-09-09T01:51:00.000Z (almost 8 years ago)
- Last Synced: 2025-02-15T08:17:00.719Z (4 months ago)
- Topics: clojure, jupyter-kernels
- Language: Python
- Size: 5.86 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# clojure-kernel
Clojure kernel for Jupyter that uses Leiningen.
## TODO
1. Move all to transports, use only one client per thingy
2. make to callback
3. also make transport for starting lein## Install
You can either install with Conda, or manually.
### Conda (reccomended)
```bash
conda install -c conda-forge clojure-kernel
```### Manually
Requirements:
* Leiningen
* Jupyter
* Python > 3.6```bash
pip install clojure-kernel```
## Development
```bash
pip install flit
flit install
```## How it works
Jupyter starts each kernel in the base notebook directory. This means if we run `lein` in our kernel, it will use the `project.clj` defined in the directory you have open with Jupyter, if it exists.
1. Read [connection file](https://jupyter-client.readthedocs.io/en/latest/kernels.html#connection-files.)
## Prior Work
This project uses some concepts from Antoine Chesnais's [CLJ-Jupyter](https://github.com/achesnais/clj-jupyter) project.