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

IJulia and Project.toml #925

Open
oschulz opened this issue May 17, 2020 · 2 comments
Open

IJulia and Project.toml #925

oschulz opened this issue May 17, 2020 · 2 comments

Comments

@oschulz
Copy link
Contributor

oschulz commented May 17, 2020

Since a while ago, the IJulia Jupyter kernel is configured to activate a project ("Project.toml" and "Manifest.toml") if detected. But I've been wondering - should the users add IJulia to the "Project.toml" or not? I think we should give some guidance here in the docs - I'm actually not sure what is best:

If IJulia is in the Project.toml, this will guarantee that it's present, an in a verison compatible with the notebook (which may use some IJulia functionality directly). But on the other hand, on Project activation it would install the kernel spec, and overwrite the kernel installed by an IJulia installed in the default shared project ("v1.x").

Or maybe it would be better for the Jupyter kernel spec to not use an absolute path in the future, but a path relative to the currently active IJulia package?

@goerz
Copy link

goerz commented Oct 9, 2024

I'd say you should never have IJulia in a project environment. Only in your base environment, and then edit your kernel.json file (see jupyter kernelspec list) to contain "--project=@."

That used to be the default, and in my opinion it should still be the default. See #1123 (and #928 for the counter-argument).

@oschulz
Copy link
Contributor Author

oschulz commented Oct 10, 2024

I'd say you should never have IJulia in a project environment.

Yes, this is what I'm currently telling people who are new to Julia. It is a bit of an unexpected pitfall, though, so if there is a way for the for the Jupyter Julia kernel spec to not use an absolute path, that would be cool.

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