You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We have script with some useful methods/settings to work with in notebooks, but we manually doing require in each notebook, is it possible to load it automatically when kernel is starting? Maybe so hooks available?
The text was updated successfully, but these errors were encountered:
I think what you need here is to write your own specialized Jupypter notebook kernel based on the iruby kernel, kinda an extension of the default iruby kernel. That sounds more monstrous as it is in the end, I think, as the "definition" of a kernel is basically a JSON config.
I cannot explain it completely, but maybe here's a hint how to approach it: In the project Jupyter on Rails there is logic that creates a special kernel in between that loads an entire Rails application.
In the same fashion you should be able to construct a kernel file that loads the files you need as your custom kernel. Maybe this rake task is a good starting point for further research.
We have script with some useful methods/settings to work with in notebooks, but we manually doing
require
in each notebook, is it possible to load it automatically when kernel is starting? Maybe so hooks available?The text was updated successfully, but these errors were encountered: