jupyter-tabnine
jupyter-tabnine copied to clipboard
Shift+Space doesn't seem to work
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.
Have the same issue, would be very appreciate if you provide any help :)
update version he added a binary .. this seems to work now
@agi1512 How u pointed your jupyter notebook to point your container? Can u please elaborate ?
@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.
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.
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
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.
Thanks for the response! @agi1512 @wenmin-wu