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

Replace rerun with %save + %runscript or %runfile #179

Closed
BoPeng opened this issue Jan 17, 2019 · 4 comments
Closed

Replace rerun with %save + %runscript or %runfile #179

BoPeng opened this issue Jan 17, 2019 · 4 comments

Comments

@BoPeng
Copy link
Contributor

BoPeng commented Jan 17, 2019

Although %rerun is convenient in rerunning the same workflow with different options, it is not clear what is the "previous run'. Since we already have the %save magic to save the content of cell to a file, it seems to make sense to introduce %runfile to workflow from an external script. It is similar to !sos run script but can make use of the task status, background mode etc.

@gaow
Copy link
Member

gaow commented Jan 17, 2019

does it support running ipynb format?

@BoPeng
Copy link
Contributor Author

BoPeng commented Jan 17, 2019

Yes, it does, and if you do not specify an extension, it will search for .sos and then .ipynb.

@BoPeng
Copy link
Contributor Author

BoPeng commented Jan 17, 2019

But having a for a.sos or a.ipynb makes the %runfile filename suspicious so I am thinking if I should rename the magic to something like %runscript, which does not sound quite correct either. Perhaps I should require the specification of full filename (with extension).

@BoPeng
Copy link
Contributor Author

BoPeng commented Jan 17, 2019

OK. I guess I will just keep the extension search feature hidden...

@BoPeng BoPeng closed this as completed Jan 17, 2019
BoPeng pushed a commit that referenced this issue Jan 17, 2019
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

2 participants