first try of jupyter
This commit is contained in:
parent
dcc1f206d4
commit
73fda04cf2
|
@ -0,0 +1,50 @@
|
|||
return {
|
||||
{
|
||||
"luk400/vim-jukit",
|
||||
-- FIXME: this does not work
|
||||
enabled = false,
|
||||
keys = {
|
||||
-- See https://github.com/machakann/vim-sandwich/blob/master/macros/sandwich/keymap/surround.vim
|
||||
{ -- open output
|
||||
"<leader>cno",
|
||||
"call jukit#splits#output_and_history()",
|
||||
silent = true,
|
||||
},
|
||||
{ -- close output
|
||||
"<leader>cnc",
|
||||
"call jukit#splits#close_output_and_history(1)",
|
||||
silent = true,
|
||||
},
|
||||
{ -- execute current cell
|
||||
"<leader>cn<space>",
|
||||
"call jukit#send#section(0)",
|
||||
silent = true,
|
||||
},
|
||||
{ -- execute all cells
|
||||
"<leader>cnn",
|
||||
"call jukit#send#all()",
|
||||
silent = true,
|
||||
},
|
||||
{ -- create cell below
|
||||
"<leader>cnj",
|
||||
"call jukit#cells#create_below(0)",
|
||||
silent = true,
|
||||
},
|
||||
{ -- create cell above
|
||||
"<leader>cnj",
|
||||
"call jukit#cells#create_above(0)",
|
||||
silent = true,
|
||||
},
|
||||
{ -- delete cell
|
||||
"<leader>cnx",
|
||||
"call jukit#cells#delete()",
|
||||
silent = true,
|
||||
},
|
||||
{ -- conversion between notebook and regular python
|
||||
"<leader>cnp",
|
||||
'call jukit#convert#notebook_convert("jupyter-notebook")',
|
||||
silent = true,
|
||||
},
|
||||
},
|
||||
},
|
||||
}
|
Loading…
Reference in New Issue