Skip to content

Should code after %save be executed? #180

@BoPeng

Description

@BoPeng

With #179 , I am adding a new %runfile magic that uses the

%save filename
%run

----
%runfile filename

pattern to replace

%run
---
%rerun

However, the current behavior of %save is that it will save the cell without executing them, so the above example will not work.

%run
%save

will not work either because %run will send %save to sos command.

I remember that we had this discussion a long time ago and you seem to use %save to create multiple workflows or arbitrary config file so you prefer the current behavior (of not executing the rest of the cell). Is this still the case?

I think using %save to make Jupyter an editor of external file is logically suspicious, and we already have

report: output='whatever'
content

for this purpose. Should I change the behavior back?

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions