Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Jupyterlab: turn on tab completion for text editor as in Notebook?

In Jupyterlab, there is a text editor that we can open .py files, is it possible to also turn on tab completion, just like how it works in Notebook ?

like image 477
Xingdong Avatar asked Oct 22 '17 12:10

Xingdong


People also ask

How do I enable Tab autocomplete in Jupyter Notebook?

Access the Jupyter Menu Simply hit the “Tab” key while writing code. This will open a menu with suggestions. Hit “Enter” to choose the suggestion.

Can I use Jupyter Notebook as a text editor?

A Jupyter notebook is neither a simple text editor nor a full-featured IDE. Jupyter notebooks provide a quick and streamlined way for problem-solvers to prototype code and quickly share code.

How do I keep the Jupyter Notebook running after closing the browser Tab?

This can be done by typing jupyter notebook in the terminal, which will open a browser. Then, navigate to the respective jupyter notebook file in the browser and open it. Click Cell > Run All on the toolbar. All done!


2 Answers

By now, tab completion in the text editor of jupyter lab has been implemented in this pull request (see also discussion in this issue). However, for it to be working you need to open a console for the editor (right click in the editor window and select Create Console for Editor).

like image 146
astoeriko Avatar answered Sep 30 '22 15:09

astoeriko


No, it is currently an open issue. https://github.com/jupyterlab/jupyterlab/issues/1276

like image 40
DharmaTurtle Avatar answered Sep 30 '22 16:09

DharmaTurtle