Skip to content

Commit

Permalink
create ipython extension
Browse files Browse the repository at this point in the history
  • Loading branch information
WaylonWalker committed Sep 20, 2022
1 parent e4d5c27 commit 5997c71
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions markata/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -441,3 +441,7 @@ def try_sort(a: Any) -> int:
for a in articles
if eval(filter, {**a.to_dict(), "timedelta": timedelta, "post": a}, {})
]


def load_ipython_extension(ipython):
ipython.user_ns["m"] = Markata()

0 comments on commit 5997c71

Please sign in to comment.