Spaces:
Sleeping
Sleeping
MilesCranmer
commited on
Commit
•
16a09af
1
Parent(s):
919b5fc
Add missing `Pkg` import before `PackageSpec`
Browse files- pysr/julia_helpers.py +1 -0
pysr/julia_helpers.py
CHANGED
@@ -200,6 +200,7 @@ def init_julia(julia_project=None, quiet=False):
|
|
200 |
|
201 |
|
202 |
def _add_sr_to_julia_project(Main, io_arg):
|
|
|
203 |
Main.sr_spec = Main.PackageSpec(
|
204 |
name="SymbolicRegression",
|
205 |
url="https://github.com/MilesCranmer/SymbolicRegression.jl",
|
|
|
200 |
|
201 |
|
202 |
def _add_sr_to_julia_project(Main, io_arg):
|
203 |
+
Main.eval("using Pkg")
|
204 |
Main.sr_spec = Main.PackageSpec(
|
205 |
name="SymbolicRegression",
|
206 |
url="https://github.com/MilesCranmer/SymbolicRegression.jl",
|