Skip to content

Commit

Permalink
ipython interactive snippet
Browse files Browse the repository at this point in the history
  • Loading branch information
jmbuhr committed Jun 24, 2024
1 parent 7d455d0 commit f08cba5
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
5 changes: 5 additions & 0 deletions lua/plugins/lsp.lua
Original file line number Diff line number Diff line change
Expand Up @@ -248,6 +248,11 @@ return {
-- }
-- }

-- lspconfig.ruff_lsp.setup {
-- capabilities = capabilities,
-- flags = lsp_flags,
-- }

-- See https://github.com/neovim/neovim/issues/23291
-- disable lsp watcher.
-- Too lags on linux for python projects
Expand Down
12 changes: 12 additions & 0 deletions snips/snippets/quarto.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,16 @@
{
"ipython_interactive": {
"prefix": ["ipyinteractive"],
"body": [
"```{python}",
"from IPython.core.getipython import get_ipython",
"ip = get_ipython()",
"interactive = False",
"if ip is not None and 'interactiveshell.TerminalInteractiveShell' in str(ip):",
" interactive = True",
"```"
]
},
"iframe": {
"prefix": ["iframe"],
"body": [
Expand Down

0 comments on commit f08cba5

Please sign in to comment.