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

import juliacall loads the startup.jl #317

Closed
mahiki opened this issue May 31, 2023 · 6 comments
Closed

import juliacall loads the startup.jl #317

mahiki opened this issue May 31, 2023 · 6 comments
Labels
enhancement New feature or request stale Issues about to be auto-closed

Comments

@mahiki
Copy link

mahiki commented May 31, 2023

Is your feature request related to a problem? Please describe.
I have a startup file in my local environment for REPL work. When loading packages or scripts from the command line I call julia with julia --startup-file=no. There does not appear to be a way to skip the startup file in a Python repl.

Describe the solution you'd like
import juliacall should default to loading julia environment with --startup-file=no option.

Describe alternatives you've considered
I could move or rename startup.jl file so it wont be found by the julia environment.

Additional context
I'm developing a python application that will call a julia module to make dataframe transformations.

@mahiki mahiki added the enhancement New feature or request label May 31, 2023
@cjdoris
Copy link
Collaborator

cjdoris commented Jun 2, 2023

Good idea, I'll look into it.

@github-actions
Copy link
Contributor

This issue has been marked as stale because it has been open for 60 days with no activity. If the issue is still relevant then please leave a comment, or else it will be closed in 7 days.

@github-actions github-actions bot added the stale Issues about to be auto-closed label Aug 19, 2023
@cjdoris
Copy link
Collaborator

cjdoris commented Aug 19, 2023

You can now start Python with the option -X juliacall-startup-file=no to disable startup.jl. This feature will appear in the next release (our you can try it out by installing from the repo).

I'm going to leave the default as yes though, since that's the Julia default.

@cjdoris cjdoris closed this as completed Aug 19, 2023
@ma-sadeghi
Copy link

@cjdoris Would you consider also adding support for an env variable to disable the startup file?

@cjdoris
Copy link
Collaborator

cjdoris commented Apr 1, 2024

You already can, see the docs.

@ma-sadeghi
Copy link

Right, sorry I missed the docs.
For future reference: https://juliapy.github.io/PythonCall.jl/stable/juliacall/#julia-config

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request stale Issues about to be auto-closed
Projects
None yet
Development

No branches or pull requests

3 participants