Skip to content

[Feature suggestion] Allow the magic command "%logstart" to filter what should be added to the history. #15344

Description

@Angelo-max-hub

For example, making it possible for the logging mechanism not to save ipython special commands, or commands that return an error, or commands that have already been logged.

I would be very happy with this, because it would make it easier for me to create clean histories of my sessions, re-execute scripts with saved sessions (because it will be clean of syntax and program errors), and transform histories into notebooks with Jupytext, Marimo, or Quarto.

Currently, re-executing files with session history requires manual work or workarounds.

Thanks!

Metadata

Metadata

Assignees

No one assigned

    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