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
mac binary that works better with IJulia #4222
Comments
The fastest thing to do is to detect if we are shipping out own git and if so, set the environment variables during Julia startup. No script should be necessary here. @staticfloat how are you doing it right now? |
Currently, this duplicates the stuff in contrib/mac/app/script, but it should not hurt. Hoping this helps #4222
@stevengj This should hopefully fix the issue you were facing. I cannot test this setup on my mac since I have Xcode installed. @staticfloat This is a slightly different approach than the wrapper. Also Cc: @loladiro @vtjnash |
See also JuliaLang/IJulia.jl#67 for another path-related problem in the Mac binaries. Currently, I'm working around all of these issues by manually updating the path, but a longer-term solution would be nice. |
Would be nice to make some progress on this and #4241. Students are running into this repeatedly. |
Can ijulia invoke a script rather than a binary? @staticfloat had a branch with s potential fix but it was not working the last I tried. |
One option is for IJulia on OSX to have IPython invoke Julia via However, that doesn't solve the issue that PyCall won't work when people run the Mac binary directly (since @JeffBezanson, are students still running into this, despite my workaround of invoking |
How about adding a juliarc.jl file to the dist and have it loaded at startup. That should allow this sort of customization without any external scripts needed (which seem to inevitably just add confusion). |
Actually, the .juliarc.jl idea is the best one yet. Can it live inside of
|
I'm not sure I follow. Is the proposal that people should make any PATH modifications in both |
The problem is that the environment modifications we need to make are bash -l won't help us here, for the above stated rationale. I like the .juliarc.jl idea because it's an existing mechanism and is Is .juliarc.jl read on IJulia kernel startup? |
@ViralBShah; taking a look at your What do you guys think? I'll submit a PR for reading in |
juliarc.jl seems to be the right solution. Perhaps we can have a command line parameter for alternate locations of this file, and also look by default in a couple of other places, like inside the app directory structure on OS X. |
On second thought, I think |
@staticfloat that's what i was thinking. perhaps the name shouldn't be the same, to reduce confusion? but perhaps it is better that they are the same to commonality? I was also thinking of suggesting other names such as site.jl, but it was tough to type too much more on my phone. If you do that, I have a few lines windows-only lines that are currently in |
… be run at startup Lays the groundwork for addressing #4222
This should be fixed by #4351 |
My understanding is that the mac binary does not include a script to start julia with the right environment variables without also opening a terminal. There should be a script suitable for starting kernels inside IJulia.
The text was updated successfully, but these errors were encountered: