JuliaPy / PythonCall.jl

Python and Julia in harmony.
https://juliapy.github.io/PythonCall.jl/stable/
MIT License
717 stars 61 forks source link

Development version of juliacall starts the Julia REPL #447

Closed MilesCranmer closed 5 months ago

MilesCranmer commented 5 months ago

Affects: JuliaCall

  1. Check out the current main.
  2. Modify pysrc/juliacall/juliapkg.json to use the development version of PythonCall.
     "packages": {
         "PythonCall": {
             "uuid": "6099a3de-0909-46bc-b1f4-468b9a2dfc0d",
-            "version": "=0.9.15"
+            "path": "../..",
+            "dev": true
         }
     }
 }
  1. Install juliacall locally with pip install . in the root of PythonCall.jl
  2. Open IPython and try to import juliacall. This results in the Julia REPL itself opening:

Screenshot 2024-01-28 at 10 36 48

6.a. If I run exit() in the Julia REPL, both the Julia REPL and Python REPL quit.... 6.b. If I use ctrl-D in the Julia REPL, I go back to the Python REPL and everything seems to be okay.

Any idea?

cjdoris commented 5 months ago

Oh yeah, this was a bug introduced by a recent refactor. I fixed it in a branch but not on main. Fixed on main now!