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 1ce56db
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 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,10 @@
]
},
"IPython embed": {
"prefix": ["ipy", "embed"],
"body": ["from IPython import embed; embed()"],
"description": "Insert IPython embed"
},
"prefix": ["ipy", "embed"],
"body": ["__import__(\"IPython\").embed() # FIXME"],
"description": "Insert IPython embed"
},
"With tempdir": {
"prefix": ["tempdir"],
"body": ["with tempfile.TemporaryDirectory() as tmpdirname:"]
Expand Down

0 comments on commit 1ce56db

Please sign in to comment.