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

Can't seem to reproduce ipynb shown in README

Open rkabrick opened this issue 3 years ago • 9 comments

Hello!

First: to say I am excited for this plugin would be a significant understatement. I have been looking for something like this and when I saw your post on Reddit I was thrilled!

Second... I have installed the plugin, and even double-checked it was loaded (via PackerLoad jupyter-nvim) but cannot seem to reproduce the state you showcase in the README. Any ideas on how I could do that? I'd love to contribute to this and help in any way I can I just need to get it working as is hahah.

Thanks in advance and really great work so far!

rkabrick avatar Jun 13 '21 03:06 rkabrick

Hum, this is very strange, allow me to test using a fresh nvim config.

ahmedkhalf avatar Jun 13 '21 05:06 ahmedkhalf

I am indeed experiencing the same issue. @rkabrick Please run :UpdateRemotePlugins and let me know the output as well as if it fixes your issue on restart.

ahmedkhalf avatar Jun 13 '21 06:06 ahmedkhalf

So the output is just "Generated manifest... ~/.local/share/nvim/rplugin.vim". And when I check what's in the file it's blank.

CleanShot 2021-06-13 at 12 13 45

It follows that nothing is fixed on restart. Also worth noting neither markdown syntax nor python is detected by nvim when in a ipynb file.

rkabrick avatar Jun 13 '21 16:06 rkabrick

Hum, perhaps it's a dependency problem? Did you try installing nbformat: https://pypi.org/project/nbformat/ ? And running UpdateRemotePlugins

On Sun, Jun 13, 2021 at 8:14 PM Ryan Kabrick @.***> wrote:

So the output is just "Generated manifest... ~/.local/share/nvim/rplugin.vim". And when I check what's in the file it's blank.

[image: CleanShot 2021-06-13 at 12 13 45] https://user-images.githubusercontent.com/31963805/121814772-d21cad00-cc40-11eb-8f86-824398c21eb1.png

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/ahmedkhalf/jupyter-nvim/issues/1#issuecomment-860235705, or unsubscribe https://github.com/notifications/unsubscribe-auth/AIXZFRFJOKIB665AZLMJ3IDTSTKO5ANCNFSM46TK4WWA .

ahmedkhalf avatar Jun 13 '21 17:06 ahmedkhalf

Yup, still no luck :/

rkabrick avatar Jun 13 '21 20:06 rkabrick

Wow this is extremely weird, I tried downloading the plugin on another machine but everything was smooth. Okay final try here:

run :checkhealth and tell me if you have any warnings and errors regarding the python3 provider and try to fix them if possible.

After there are no problems, restart, make sure the plugin is installed and loaded and then :UpdateRemotePlugins, wait a bit, then restart again and let me know if the plugin works.

Also you are running nvim 5.0 right?

EDIT: also try using :packadd instead of the packer load, perhaps this will load it?

ahmedkhalf avatar Jun 14 '21 09:06 ahmedkhalf

Long time no see! hahaha.. I apologize for the huge gap in my response... work has been crazy.

In any event, I believe I am much closer to getting this working. The error I have now is that when I open an ipynb file, I get the JSON code with no rendering of the Jupyter nvim UI. Additionally, if I open a blank ipynb file, I get no python syntax, and the filetype is picked up as json

rkabrick avatar Jul 21 '21 17:07 rkabrick

Did you call updateremoteplugins? They were some additions since last update, so some things changed.

On Wed, Jul 21, 2021, 9:42 PM Ryan Kabrick, @.***> wrote:

Long time no see! hahaha.. I apologize for the huge gap in my response... work has been crazy.

In any event, I believe I am much closer to getting this working. The error I have now is that when I open an ipynb file, I get the JSON code with no rendering of the Jupyter nvim UI. Additionally, if I open a blank ipynb file, I get no python syntax, and the filetype is picked up as json

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/ahmedkhalf/jupyter-nvim/issues/1#issuecomment-884370506, or unsubscribe https://github.com/notifications/unsubscribe-auth/AIXZFRCPUG7TIC7FGBTFVWTTY4BGPANCNFSM46TK4WWA .

ahmedkhalf avatar Jul 21 '21 18:07 ahmedkhalf

Alright so I'm 99% sure it was an issue between virtualenv tools (pyenv & pipenv)... Now I have the Run Code and Delete Cell (HAZAHH)

But... everything is monochromatic (no python highlighting) and I get an issue (end of file expected)

rkabrick avatar Jul 21 '21 21:07 rkabrick