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

Support for Jupyter notebooks #100

Closed
mattilyra opened this Issue Feb 29, 2016 · 2 comments

Comments

Projects
None yet
2 participants
@mattilyra
Copy link

mattilyra commented Feb 29, 2016

Notebooks have quickly become and excellent framework for interactive experimentation. It would be great to have support in sacred for running experiments in notebook cells. At the moment the experiment object can not even be created because the notebook code cell does not have a filename, which sacred depends on.

@Qwlouse

This comment has been minimized.

Copy link
Member

Qwlouse commented Mar 2, 2016

I am hesitant to promote writing sacred experiments in notebooks because I cannot see a good way to keep the results reproducible.
The code in a notebook can be executed and changed in arbitary order. So it is unclear how to rerun an experiment even if sacred would save the whole notebook in the database.
I prefer the workflow of keeping the experiment in a separate file and then import and call it from a notebook. That way I can interactively explore the results while keeping the results reproducible.

That being said, if you say that you want to use sacred in a notebook nonetheless, I'd be happy to remove the dependency on an existing filename. That shouldn't be hard to do.

@Qwlouse

This comment has been minimized.

Copy link
Member

Qwlouse commented Apr 1, 2016

After thinking a bit more about this, I decided to add support for Notebook based experiments.
Sacred will now fire a warning saying that the sourcecode cannot be saved and that the experiment won't be reproducible. But it will run now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.