Spaces:
Running
Running
deepsource-autofix[bot]
commited on
Commit
•
e7650cd
1
Parent(s):
e372ae8
Format code with black
Browse files- pysr/julia_helpers.py +2 -0
pysr/julia_helpers.py
CHANGED
@@ -175,6 +175,7 @@ def init_julia(julia_project=None, quiet=False, julia_kwargs=None):
|
|
175 |
raise ImportError(_import_error())
|
176 |
|
177 |
from julia.core import Julia
|
|
|
178 |
try:
|
179 |
Julia(**julia_kwargs)
|
180 |
except UnsupportedPythonError:
|
@@ -183,6 +184,7 @@ def init_julia(julia_project=None, quiet=False, julia_kwargs=None):
|
|
183 |
Julia(**julia_kwargs)
|
184 |
|
185 |
from julia import Main as _Main
|
|
|
186 |
Main = _Main
|
187 |
|
188 |
if julia_activated_env is None:
|
|
|
175 |
raise ImportError(_import_error())
|
176 |
|
177 |
from julia.core import Julia
|
178 |
+
|
179 |
try:
|
180 |
Julia(**julia_kwargs)
|
181 |
except UnsupportedPythonError:
|
|
|
184 |
Julia(**julia_kwargs)
|
185 |
|
186 |
from julia import Main as _Main
|
187 |
+
|
188 |
Main = _Main
|
189 |
|
190 |
if julia_activated_env is None:
|