jupyter-tabnine icon indicating copy to clipboard operation
jupyter-tabnine copied to clipboard

Shift+Space doesn't seem to work

Open agi1512 opened this issue 5 years ago • 8 comments

I have remote jupyter notebook server. I've setup on it docker with jupyter as were in earlier versions shown, then installed latest available library from github. At first it wouldn't even show me predictions, even after i entered correct address of the server in the nbextensions settings , i had to manually enter server http://*ip*:9999 into .js file (in var config), then it worked. But still, when i press Shift+Space it doesn't show original jupyter popup with function suggestions. Any help appreciated, as i'm huge fan of tabnine, but it's very uncomfortable to guess what functions i have in the library.

agi1512 avatar Jan 31 '20 13:01 agi1512

Have the same issue, would be very appreciate if you provide any help :)

Klom57 avatar Mar 21 '20 20:03 Klom57

update version he added a binary .. this seems to work now

ghost avatar Mar 27 '20 19:03 ghost

@agi1512 How u pointed your jupyter notebook to point your container? Can u please elaborate ?

Prabhusarathy18 avatar Nov 27 '20 10:11 Prabhusarathy18

@Prabhusarathy18 sorry I didnt test this with the new binary. If my memory does not fail me, pointing through jupyter notebook wasn't working, because in some .js files there was localhost hardcoded. I found a dir with extension installed, in which I then looked up 'localhost' with linux command find. Then in all found files I changed localhost to ip of my server.

agi1512 avatar Nov 28 '20 10:11 agi1512

Don't need to change the js file, it's not hardcoded @agi1512, I get the remote_server_url from the config. refer to https://github.com/wenmin-wu/jupyter-tabnine/blob/master/src/jupyter_tabnine/static/main.js#L112.

You may need to install the latest version by issuing pip3 install https://github.com/wenmin-wu/jupyter-tabnine/archive/master.zip. Because the data type returned by the remote server is string, I fixed it here https://github.com/wenmin-wu/jupyter-tabnine/blob/master/src/jupyter_tabnine/static/main.js#L121, however, haven't got time to release a new version to PyPI.

wenmin-wu avatar Nov 28 '20 15:11 wenmin-wu

Thank you for the reply, I will use the command you provided, also the issue is almost year old now. I didnt have the opportunity to test newer releases myself, but if everything is working as intended now, feel free to close the issue @wenmin-wu! Thanks

agi1512 avatar Nov 28 '20 15:11 agi1512

Sorry, I have been busy with my career stuffs this year, didn't get enough time to go through these issues. Let's leave it here since more people come across the same issues.

wenmin-wu avatar Nov 28 '20 15:11 wenmin-wu

Thanks for the response! @agi1512 @wenmin-wu

Prabhusarathy18 avatar Dec 03 '20 15:12 Prabhusarathy18