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

Make CMBLensingSPT3GInterface.__init__ set Python sys.path #2

Open
cailmdaley opened this issue Aug 4, 2020 · 0 comments
Open

Make CMBLensingSPT3GInterface.__init__ set Python sys.path #2

cailmdaley opened this issue Aug 4, 2020 · 0 comments

Comments

@cailmdaley
Copy link
Collaborator

@marius311 had the following idea:

We could make it so that CMBLensingSPT3GInterface.__init__ added the right path to the sys.path. Then the usage instructions on the Python side could be:

%load_ext julia.magic
%julia using CMBLensingSPT3GInterface
import CMBLensingSPT3GInterface

and it would work without needing to hardcode any paths and with only one copy of the package (the one managed by Julia)

For scripts, we would need to import iPython and call the Julia magic first.

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

1 participant