Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to get auto completion on jupyter notebook?

I am new to Python language programming. I found that we can have auto completion on Jupyter notebook. I found this suggestion:

"The auto-completion with Jupyter Notebook is so weak, even with hinterland extension. Thanks for the idea of deep-learning-based code auto-completion. I developed a Jupyter Notebook Extension based on TabNine which provides code auto-completion based on Deep Learning. Here's the Github link of my work: jupyter-tabnine.

It's available on pypi index now. Simply issue following commands, then enjoy it:)

pip3 install jupyter-tabnine, jupyter nbextension install --py jupyter_tabnine, jupyter nbextension enable --py jupyter_tabnine, jupyter serverextension enable --py jupyter_tabnine"

I did 4 steps installation and it looked installed well. However, when I tried using Jupyter notebook its auto completion didn't work. Basically my question is please help how to get auto completion on Jupiter notebook? Thank you very much.

like image 436
MK Huda Avatar asked Oct 23 '25 15:10

MK Huda


2 Answers

Press tab twice while you are writing your code and the autocomplete tab will show for you. Just select one and press enter

like image 191
Henrique Branco Avatar answered Oct 25 '25 06:10

Henrique Branco


After installing Nbextensions, go to Nbextensions in jupyter notebook, tick on Hinterland. Then reopen your jupyter notebook.

like image 45
Bibin Avatar answered Oct 25 '25 04:10

Bibin



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!