szymonmaszke / vimpyter

Edit your Jupyter notebooks in Vim/Neovim
MIT License
334 stars 17 forks source link

can't find notedown on windows 10 #13

Open kirilligum opened 6 years ago

kirilligum commented 6 years ago

I'm on windows 10

I installed notedown with

conda install notedown

    notedown:          1.5.1-py_0 conda-forge
    pandoc-attributes: 0.1.7-py_1 conda-forge

I installed vimpyter as

Plug 'szymonmaszke/vimpyter' 
autocmd Filetype ipynb nmap <silent><Leader>b :VimpyterInsertPythonBlock<CR>
autocmd Filetype ipynb nmap <silent><Leader>j :VimpyterStartJupyter<CR>
autocmd Filetype ipynb nmap <silent><Leader>n :VimpyterStartNteract<CR>

When I start gVim, I get this error:

notedown executable is required in order for this software to work. Check 
whether you have needed dependencies installed in README.md

image

I guess I have to specify the path to notedown executable? Here is where conda installs it:

(base) C:\WINDOWS\system32>ls C:\Users\kiril\Anaconda3\Scripts\notedown.exe
'C:\Users\kiril\Anaconda3\Scripts\notedown.exe'
szymonmaszke commented 6 years ago

Comment out lines 7-11 in plugin/vimpyter.vim, tell me whether everything works fine now.

kirilligum commented 6 years ago

Well, the warning is gone :-)

but whan i open an .ipynb file, there is no text at all

On Thu, Aug 9, 2018 at 12:52 PM, Szymon Maszke notifications@github.com wrote:

Comment out lines 7-11 in plugin/vimpyter.vim, tell me whether everything works fine now.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/szymonmaszke/vimpyter/issues/13#issuecomment-411876668, or mute the thread https://github.com/notifications/unsubscribe-auth/AB2p1T8O3sLn6VufnMHlGJVb9nZnCYB0ks5uPJMVgaJpZM4V0d5t .

szymonmaszke commented 6 years ago

Can you run notedown command from command line (Powershell I suppose)? I am not using Windows or conda, so I can only give you the tips so you can debug it on your own. If the CLI command is different (e.g. conda notedown), you have to change those lines (here, here, here and here, I think that is all of them) to appropriate 'Windows-Conda' command.

If you have some spare time I would really appreciate the PR fixing this issue in a more general manner (detecting conda [other environments as well?]) and adjusting those commands (I am low on time lately).

kirilligum commented 6 years ago

turns out I had notedown in conda but not under windows. I was running vim under windows, therefore it didn't see notedown.

I installed notedown under windows. When I open vim, !notedown try.md opens a terminal window named vimrun.exe and outputs ipynb text of the markdown file.

are there any tests or debugging info that I can run?

I'm not skilled with vim-scripting and have limited time. but hopefully, either we can get somewhere with quick steps or someone else can pick up. If it can be quick, I'd love to do a pr

On Tue, Aug 14, 2018 at 6:54 AM, Szymon Maszke notifications@github.com wrote:

Can you run notedown command from command line (Powershell I suppose)? I am not using Windows or conda, so I can only give you the tips so you can debug it on your own. If the CLI command is different (e.g. conda notedown), you have to change those lines (here https://github.com/szymonmaszke/vimpyter/blob/master/autoload/vimpyter.vim#L63, here https://github.com/szymonmaszke/vimpyter/blob/master/autoload/vimpyter.vim#L83, here https://github.com/szymonmaszke/vimpyter/blob/master/autoload/vimpyter.vim#L123 and here https://github.com/szymonmaszke/vimpyter/blob/master/plugin/vimpyter.vim#L7, I think that is all of them) to appropriate 'Windows-Conda' command.

If you have some spare time I would really appreciate the PR fixing this issue in a more general manner (detecting conda [other environments as well?]) and adjusting those commands (I am low on time lately).

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/szymonmaszke/vimpyter/issues/13#issuecomment-412879728, or mute the thread https://github.com/notifications/unsubscribe-auth/AB2p1XmYvVOnxMFIssRJWZhfVqTZfbBOks5uQtaZgaJpZM4V0d5t .