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

Run .julia/config/startup.jl at startup #509

Closed
KronosTheLate opened this issue Sep 30, 2020 · 2 comments
Closed

Run .julia/config/startup.jl at startup #509

KronosTheLate opened this issue Sep 30, 2020 · 2 comments

Comments

@KronosTheLate
Copy link

In my startup file, I have currently defined a function frac(a, b) = /(a, b). This function works in VSCode and in the REPL at startup, but not in pluto. Does that mean that Pluto does not have that file executed at startup? It seems odd, as I launch pluto.jl with a function from my startup.jl file, and I thought that the terminal I launch from is the kernel for my notebook. Does anyone know what might be the case?

@shashankp
Copy link
Contributor

The terminal isn't the kernel; Pluto creates a Workspace for each notebook to run in.
It does run a startup scripts when creating a new Workspace, but .julia/config/startup.jl isn't one of those.

@fonsp
Copy link
Owner

fonsp commented Sep 30, 2020

#165 (comment)

@fonsp fonsp closed this as completed Sep 30, 2020
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

3 participants