Skip to content

Commit ec73d6d

Browse files
authored
instructions for using cljbridge package (#184)
1 parent 1ee4f97 commit ec73d6d

File tree

1 file changed

+12
-5
lines changed

1 file changed

+12
-5
lines changed

topics/embedded.md

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -49,18 +49,25 @@ If the installation cannot find 'jni.h' then most likely you have the Java runti
4949
## From the Python REPL
5050

5151

52-
The next step involves starting a python repl from our libpython-clj base directory.
53-
This is only required because we have a special
54-
[python script](https://github.com/clj-python/libpython-clj/blob/master/cljbridge.py)
55-
that has code to start a Java VM with a correct classpath. So we start by importing
52+
The next step involves starting a python repl.
53+
54+
This requires a python library `cljbridge`,
55+
which can be installed via
56+
57+
```
58+
export JAVA_HOME=<--YOUR JAVA HOME-->
59+
python3 -m pip install --index-url https://test.pypi.org/simple/ --extra-index-url https://pypi.org/simple cljbridge
60+
```
61+
62+
So we start by importing
5663
that script:
5764

5865

5966
```python
6067
Python 3.8.5 (default, Jan 27 2021, 15:41:15)
6168
[GCC 9.3.0] on linux
6269
Type "help", "copyright", "credits" or "license" for more information.
63-
>>> import cljbridge
70+
>>> from clojurebridge import cljbridge
6471
>>> test_var=10
6572
>>> cljbridge.init_jvm(start_repl=True)
6673
Mar 11, 2021 9:08:47 AM clojure.tools.logging$eval3186$fn__3189 invoke

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy