File tree Expand file tree Collapse file tree 1 file changed +12
-5
lines changed Expand file tree Collapse file tree 1 file changed +12
-5
lines changed Original file line number Diff line number Diff line change @@ -49,18 +49,25 @@ If the installation cannot find 'jni.h' then most likely you have the Java runti
49
49
## From the Python REPL
50
50
51
51
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
56
63
that script:
57
64
58
65
59
66
``` python
60
67
Python 3.8 .5 (default, Jan 27 2021 , 15 :41 :15 )
61
68
[GCC 9.3 .0] on linux
62
69
Type " help" , " copyright" , " credits" or " license" for more information.
63
- >> > import cljbridge
70
+ >> > from clojurebridge import cljbridge
64
71
>> > test_var=10
65
72
>> > cljbridge.init_jvm(start_repl = True )
66
73
Mar 11 , 2021 9 :08 :47 AM clojure.tools.logging$ eval3186$ fn__3189 invoke
You can’t perform that action at this time.
0 commit comments