Skip to content
This repository has been archived by the owner on Dec 2, 2021. It is now read-only.

No text on open notebook #26

Open
ando600 opened this issue Apr 13, 2021 · 6 comments
Open

No text on open notebook #26

ando600 opened this issue Apr 13, 2021 · 6 comments

Comments

@ando600
Copy link

ando600 commented Apr 13, 2021

Hi, I have vimpyter installed on both vim and nvim, and I have notedown version 1.5.1 installed. However, when I open a jupyter notebook, I see nothing in the vim terminal, and zc /zo doesnt find any closed folds. Below is a screenshot of the jupyter notebook and my vim teriminal. Do I need to configure the notedown in some way?
Thanks,

Andrew

Screenshot_2021-04-13_10-52-51

@uwla
Copy link

uwla commented Apr 13, 2021

same thing here

@gitgurra
Copy link

gitgurra commented Apr 21, 2021

Same here. Haven't tried to do any major debugging but my installation seems correct.

E:

Using VIM 8.2 on Pop!_OS 20.10 and notedown 1.5.1

@bmedicke
Copy link

bmedicke commented May 7, 2021

I have the same issue with both Vim 8.2.2029 and NeoVim 0.4.4.

@p-sgarbi
Copy link

Vim 8.2 and Notedown 1.5.1 on macOS, same issue... Pretty sure this isn't an authoritative solution as it feels super kludgey, but it worked for me 🤷‍♀️

I tried running notedown standalone and it barfed an error that ended like this:

$ notedown --from notebook --to markdown -o test.md test.ipynb
...
  File "/opt/miniconda3/share/jupyter/nbconvert/templates/compatibility/display_priority.tpl", line 2, in top-level template code
    {%- extends 'display_priority.j2' -%}
jinja2.exceptions.TemplateNotFound: ../base/display_priority.j2

This also resulted in an empty test.md file. So I went to /opt/miniconda3/share/jupyter/nbconvert/templates/compatibility/display_priority.tpl, which looked like this:

{{ resources.deprecated("This template is deprecated, please use base/display_priority.j2") }}
{%- extends 'display_priority.j2' -%}

And I changed the path in the extends to include the base dir, viz.:

...
{%- extends 'base/display_priority.j2' -%}

And now I can vim into test.ipynb – it works fine and looks beautiful.

@paalge
Copy link

paalge commented Jul 1, 2021

@p-sgarbi Thank you that worked, though this looks like an issue with nbconvert?

@grchristensen
Copy link

For anyone else who comes across this issue the notedown problem is mentioned in aaren/notedown#95. Since the breaking change comes from nbconvert v6, another easy way to fix this is to downgrade your installation of nbconvert after you have installed notedown:

pip install nbconvert==5.*

After this you should find that notedown works properly and vimpyter will be able to convert notebooks to markdown to display in the terminal.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants