Jupyter notebook extension which support coding auto-completion based on Deep Learning
This extension for Jupyter Notebook enables the use of coding auto-completion based on Deep Learning.
Other client plugins of TabNine require starting a child process for TabNine binary and using Pipe for communication. This can’t be done with Jupyter Notebook, since child process can’t be created with JQuery and Jupyter Notebook doesn’t provide any way for adding third-part js libs to plugins.
In this repository, it is achived by developing a client plugin and a server plugin for Jupyter Notebook. The client plugin generate request info and send http request to the server plugin. The server plugin pass the request info to it’s client process (TabNine) and return the request to client plugin.
- from the master version on the github repo (this will be always the most recent version)
- via pip for the version hosted on pypi
From the github repo or from Pypi,
install the package
pip3 install https://github.com/wenmin-wu/jupyter-tabnine/archive/master.zip [--user][--upgrade]
or pip3 install jupyter-tabnine [--user][--upgrade]
or clone the repo and install git clone https://github.com/wenmin-wu/jupyter-tabnine.git
python3 setup.py install
install the notebook extension
jupyter nbextension install --py jupyter_tabnine [--user|--sys-prefix|--system]
and enable notebook extension and server extension
jupyter nbextension enable --py jupyter_tabnine [--user|--sys-prefix|--system] jupyter serverextension enable --py jupyter_tabnine [--user|--sys-prefix|--system]
For Jupyter versions before 4.2, the situation after step 1 is more tricky, since the --py option isn’t available, so you will have to find the location of the source files manually as follows (instructions adapted from [@jcb91](https://github.com/jcb91)’s jupyter_highlight_selected_word). Execute
python -c "import os.path as p; from jupyter_tabnine import __file__ as f, _jupyter_nbextension_paths as n; print(p.normpath(p.join(p.dirname(f), n()['src'])))"
jupyter nbextension install <output source directory> jupyter nbextension enable jupyter_tabnine/jupyter_tabnine
where <output source directory> is the output of the first python command.
- A shortcut is added to let you switch between Jupyter raw completion and TabNine auto-competion. Just enter shift + space when you want raw completion of Jupyter :)
- Remote auto-completion server is also supported. You may want this to speed up the completion request handing. Or maybe your company want to deploy a compeltion server cluster that services everyone. Refer https://github.com/wenmin-wu/jupyter-tabnine to learn how to deploy remote server.
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
|Filename, size||File type||Python version||Upload date||Hashes|
|Filename, size jupyter_tabnine-1.1.0-py2.py3-none-any.whl (21.1 kB)||File type Wheel||Python version py2.py3||Upload date||Hashes View|
Hashes for jupyter_tabnine-1.1.0-py2.py3-none-any.whl