Skip to content

Commit 21108f3

Browse files
committed
Init Julia with python -m juliacall.init
1 parent 4d7eeea commit 21108f3

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

pysrc/juliacall/init.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
import juliacall as _ # calls init() which calls juliapkg.executable() which lazily downloads julia
2+
3+
import sys
4+
if "--debug" in sys.argv:
5+
import juliapkg, json
6+
state = juliapkg.state.STATE
7+
state["version"] = str(state["version"])
8+
print(json.dumps(state, indent=2))
9+
else:
10+
print("Initialized successfully. Pass --debug to see the full JuliaPkg state.")

0 commit comments

Comments
 (0)