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

Vimpyter always shows empty notebook files on Windows 10 and neovim 0.4.4 #27

Open
byteptr opened this issue Jun 5, 2021 · 1 comment

Comments

@byteptr
Copy link

byteptr commented Jun 5, 2021

Hi to all,
I have installed Neovim 0.4.4 on windows 10 machine and then vimpyter pluging with no luck casuse this pluging shows empty screen. I already test as suggested in #19 to open "spaceless" filenames but the problem persists. Any ideas to get around the problem?
Thank you all in advance.

Im picking files from my local drive:

D:\code\python

Name of one of tested files with no luck:

fstring.ipynb

All of my jupyter notebook files are created and edited from Chrome navigator, I also tried to edit from Edge, but this seems unrelated because the problem persists.

System Info

C:\Users\Utilisateur>notedown --version
1.5.1

Windows build: 19043.985

I try with :PlugUpdate as suggested in #5 , here is the output:

[===========]

- Finishing ... Done!
- fzf: Already up to date.
- nvim-fugitive: Already up to date.
- vim-github-dashboard: Already up to date.
- vimpyter: Already up to date.
- onedark.vim: Already up to date.
- vim-airline: Already up to date.
- vim-airline-themes: Already up to date.
- vim-easy-align: Already up to date.
- nerdtree: Already up to date.
- fzf.vim: Already up to date.
- coc.nvim: Already up to date.

I ran these commands to diagnose:

:messages

nothing.

:PlugStatus

[===========]
- fzf: OK
- nvim-fugitive: OK
- vim-easy-align: OK
- onedark.vim: OK
- vim-github-dashboard: OK
- vim-airline-themes: OK
- vim-airline: OK
- vimpyter: OK
- nerdtree: OK (not loaded)
- fzf.vim: OK
- coc.nvim: OK

:checkhealth

========================================================================
  - OK: Environment check passed

  - OK: Javascript bundle build/index.js found
  - OK: Service started

health#nvim#check
========================================================================
## Configuration
  - OK: no issues found

## Performance
  - OK: Build type: RelWithDebInfo

## Remote Plugins
  - OK: Up to date

health#provider#check
========================================================================
## Clipboard (optional)
  - OK: Clipboard tool found: win32yank

## Python 2 provider (optional)
  - WARNING: No Python executable found that can `import neovim`. Using the first available executable for diagnostics.
  - ERROR: Python provider error:
    - ADVICE:
      - provider/pythonx: Could not load Python 2:
          python2 not found in search path or not executable.
          python2.7 not found in search path or not executable.
          python2.6 not found in search path or not executable.
          C:\Python38\python.EXE is Python 3.8 and cannot provide Python 2.
  - INFO: Executable: Not found

## Python 3 provider (optional)
  - INFO: `g:python3_host_prog` is not set.  Searching for python in the environment.
  - INFO: Multiple python executables found.  Set `g:python3_host_prog` to avoid surprises.
  - INFO: Executable: C:\Python38\python.EXE
  - INFO: Other python executable: C:/Python38/python
  - INFO: Other python executable: /python
  - INFO: Python version: 3.8.2
  - INFO: pynvim version: 0.4.3
  - OK: Latest pynvim is installed.

## Ruby provider (optional)
  - INFO: Ruby: ruby 2.7.2p137 (2020-10-01 revision 5445e04352) [x64-mingw32]
  - WARNING: `neovim-ruby-host` not found.
    - ADVICE:
      - Run `gem install neovim` to ensure the neovim RubyGem is installed.
      - Run `gem environment` to ensure the gem bin directory is in $PATH.
      - If you are using rvm/rbenv/chruby, try "rehashing".
      - See :help |g:ruby_host_prog| for non-standard gem installations.

## Node.js provider (optional)
  - INFO: Node.js: v12.16.3
  - INFO: Neovim node.js host: C:\Users\Utilisateur\AppData\Roaming\npm\node_modules/neovim/bin/cli.js
  - OK: Latest "neovim" npm/yarn package is installed: 4.10.0

My init.vim file:

" - For Neovim: stdpath('data') . '/plugged'
" - Avoid using standard Vim directory names like 'plugin'
call plug#begin('~/.vim/plugged')
" Plugin outside ~/.vim/plugged with post-update hook
"
Plug 'junegunn/fzf', { 'do': { -> fzf#install() } }
Plug 'junegunn/fzf.vim'
Plug 'joshdick/onedark.vim'
Plug 'doronbehar/nvim-fugitive'
Plug 'https://github.com/junegunn/vim-github-dashboard.git'
Plug 'vim-airline/vim-airline'
Plug 'vim-airline/vim-airline-themes'
Plug 'junegunn/vim-easy-align'
Plug 'scrooloose/nerdtree', { 'on':  'NERDTreeToggle' }
Plug 'neoclide/coc.nvim', {'branch': 'release'}
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>
call plug#end()
let g:newtr_keepdir=0
set rnu
cd d:/code
@grchristensen
Copy link

I'm really late here but is this related to #26? What's the output of running

notedown --to markdown fstring.ipynb

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

2 participants