Skip to content
Examples using libpython-clj
Clojure
Branch: master
Clone or download
Latest commit 900b680 Jan 19, 2020
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
resources plotting with numpy Jan 18, 2020
src/gigasquid add pie chart Jan 18, 2020
.gitignore initial commit Jan 11, 2020
LICENSE initial commit Jan 11, 2020
README.md add pie chart Jan 18, 2020
deps.edn Updating to new “Clojurey” syntax Jan 17, 2020
pom.xml initial commit Jan 11, 2020
try.jpg Matplotlib from another namespace Jan 17, 2020

README.md

libpython-clj-examples

Overview

This repo contains some examples of using libpython-clj with various python libraries. So far there are source code examples meant to be walked through in the REPL

  • GPT2 text generation from hugging-face
  • MXNet MNIST classification using the Module API
  • Matlib PyPlot

In general, you will need a python3 env and pip install the various packages before running

Installation

The code is using the most recent snapshot from libpython-clj to get the latest and greatest interop syntax. To use it you will have to:

  • git clone git@github.com:cnuernber/libpython-clj.git
  • cd cd libpython-clj
  • lein install

You should have libpython-clj-1.31-SNAPSHOT.jar installed locally then and be able to run the examples

License

Copyright © 2020 Carin Meier

Distributed under the Eclipse Public License either version 1.0 or (at your option) any later version.

You can’t perform that action at this time.