davidbrochart / nbterm

Jupyter Notebooks in the terminal.
MIT License
753 stars 37 forks source link

Ctrl-E doesn't work for me #14

Closed vmedea closed 3 years ago

vmedea commented 3 years ago

I really like the idea of this!

However I'm having trouble getting nbterm to execute the contents of cells. I can press enter, enter something in the cell, like print(100) then press ESC to go back to command mode.

But when I then push Ctrl-E or Ctrl-R, nothing happens. No error message, nothing. Other key bindings (such as Ctrl-Q to quit) do work. Am I overlooking something?

davidbrochart commented 3 years ago

Do you have a (Python) kernel installed?

$ pip install ipykernel
vmedea commented 3 years ago

That solved it, thank you!

nicoguaro commented 3 years ago

Do you have a (Python) kernel installed?

$ pip install ipykernel

Wouldn't this be a requirement then?

It also solved the problem for me , BTW.

davidbrochart commented 3 years ago

But ipykernel is one kernel implementation for Python, why require this one more than another?

nicoguaro commented 3 years ago

But ipykernel is one kernel implementation for Python, why require this one more than another?

You're right. Maybe a mention of nbterm not coming with any kernel is better.

davidbrochart commented 3 years ago

Will do, thanks!

vmedea commented 3 years ago

Yes, I think adding a message when trying to execute that there is no kernel available would be helpful.

JulesGM commented 3 years ago

Definitely, trying to run without a kernel should raise an error

davidbrochart commented 3 years ago

I think we should have a status bar for that, see #5.