Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

A direct way to import Julia packages in Python? #109

Closed
henry2004y opened this issue Feb 11, 2022 · 2 comments
Closed

A direct way to import Julia packages in Python? #109

henry2004y opened this issue Feb 11, 2022 · 2 comments

Comments

@henry2004y
Copy link

From the current documentation, it seems like to use any Julia package (even the standard ones), we need to create and modify the juliacalldeps.json file. Are we able to import, e.g. LinearAlgebra directly in Python? Or is it possible to use a direct Pkg.add call in Python to install the Julia packages?

@cjdoris
Copy link
Collaborator

cjdoris commented Feb 11, 2022

jl.seval("using LinearAlgebra") does what you want. You don't need to put standard libraries in the deps file.

@cjdoris cjdoris closed this as completed Feb 11, 2022
@cjdoris
Copy link
Collaborator

cjdoris commented Feb 11, 2022

The JuliaCall docs could certainly be improved, but some of this stuff is in flux right now anyway.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants