Skip to content

Commit

Permalink
Improve ipython embed snippet
Browse files Browse the repository at this point in the history
  • Loading branch information
Jendker committed Oct 14, 2024
1 parent 17fcefa commit a503f54
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions stow/common/dot-config/nvim/snippets/python.json
Original file line number Diff line number Diff line change
Expand Up @@ -228,10 +228,13 @@
]
},
"IPython embed": {
"prefix": ["ipy", "embed"],
"body": ["from IPython import embed; embed()"],
"description": "Insert IPython embed"
},
"prefix": ["ipy", "embed"],
"body": [
"q = __import__(\"functools\").partial(__import__(\"os\")._exit, 0) # FIXME",
"__import__(\"IPython\").embed() # FIXME"
],
"description": "Insert IPython embed"
},
"With tempdir": {
"prefix": ["tempdir"],
"body": ["with tempfile.TemporaryDirectory() as tmpdirname:"]
Expand Down

0 comments on commit a503f54

Please sign in to comment.