Skip to content

%loadpy inconsistent with "run all" in notebook #1110

Description

@Carreau

Already made an allusion to it in #977,
but when using loadpy, the result is appended in the next cell, which is annoying when using "run all" or sharing notebook.

Moreover when you want to 'fix' it, you start thinking "did I changed the cell content ?, do I have to remove %loadpy or the next cell ?", I know that there is %run which works on many cases, but I'm 'running all' notebooks more and more often and I though it might append to a lot more users when released.

Expected behaviour could be :

  • override current corresponding line of the cell with loaded file, why not by prepending # loaded through %loadpy filename, not the all cell because it can be multiline
  • comment the %loadpy instruction and append the file in the next cell (the easier ?)
  • ideally generate a file cell, bound to the real file... ( one can dream )

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions