-
Notifications
You must be signed in to change notification settings - Fork 122
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
Add support for startup scripts #58
Comments
@yunabe - I'm thinking we can change |
…ng if we encounter an error while reading a startup file
Sorry for the slow response. I think it's a good idea to support startup scripts. But before desining and implementing actual code, I would like to make clear what we really want to do with startup scripts. jamdagni86, what do you really want to do with start-up scripts? I do not want to make the start-up time longer unnecessarily by supporting start-up scripts. So, I would like to make clear what we really want to achive with start-up scripts. Thanks, |
@yunabe - the idea is to have common functions/imports which people usually import once they start up the lgo kernel (say a function to connect to a db or as you said, common packages like "fmt"). As you rightly said, giving this option to the user could potentially slow up starting the kernel. But I guess, it's upto the user to take that decision to add code which slows the startup down. |
Jupyter (IPython) supports startup scripts. When the kernel starts, it loads all the files present in the startup directory (usually
~/.ipython/profile_default/startup
or~/.jupyter/startup
) in lexicographical order.Add support for loading any *.go files found in the directory during startup.
The text was updated successfully, but these errors were encountered: