Coder Social home page Coder Social logo

antogerva / jupyter-tabnine Goto Github PK

View Code? Open in Web Editor NEW

This project forked from codota/jupyter-tabnine

1.0 1.0 0.0 4.44 MB

TabNine Coding Autocompletion for Jupyter

License: GNU General Public License v3.0

CSS 2.02% JavaScript 86.48% Go 5.47% Dockerfile 2.16% Shell 3.87%

jupyter-tabnine's Introduction

Jupyter TabNine

Overview

jupyter-tabnine

This project provides coding autocompletion based on TabNine for Jupyter.

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 achieved through ching the plugin to a HTTP client and starting a server wirtten in Golang to wrap the TabNine binray and handle the clients requests.

Install

Prerequirements

  • docker
  • jupyter >= 4.1 (you can check with jupyter --version)
  • git clone this project by running git clone [email protected]:wenmin-wu/jupyter-tabnine.git

For Linux or Mac

Just run bash bootstrap.sh you can also install it manually as following.

For Windows (or Manually)

1. Build docker image

  • docker build -t="tabnine-server:latest"

2. Run server

docker run --rm --name jupyter-tabnine-server \
    -p 9999:8080 -d tabnine-server:latest

3. Install plugin for Jupyter

jupyter nbextension install plugin/tabnine --user
jupyter nbextension enable tabnine/main --user

mkdir -p ${HOME}/.jupyter/custom/ #For windows: mkdir -p %HOMEPATH%\.jupyter\custom
cp plugin/custom/custom.css ${HOME}/.jupyter/custom/ #For windows: cp plugin/custom/custom.css %HOMEPATH%\.jupyter\custom\

TODO

  • Package this extension to a pypi package.
  • Develop an extension for JupyterLab.

jupyter-tabnine's People

Contributors

wenmin-wu avatar

Stargazers

 avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.