jupynium.nvim: :JupyniumStartSynch hangs and then closes notebook window
Describe the bug
Neovim Hangs on :JupyniumStartSynch (with command selection area open) and then eventually closes the firefox notebook window.
Priort to that: It successfully opens a Firefox window with Jupiter notebook with :JupyniumStartSyncAndAttachToServer command. :J…StartSynch also does open up one of the files – it just is never able to do anything with it.
The hang and close happens regardless of input from the user. (I can not touch board nor mouse or switch windows – either way the same result.)
Final output in nvim command line:
Jupynium: RPC channel closed. Stop sending all notifications.
[Jupynium]: Cancelling sync...
Instal versions: GeckoDriver: 0.33.0 NVIM: 0.9.1 Jupyter Notebook: 6.5.4 Python: 3.11.3 macOS: 13.4
To Reproduce Run the exact descriptions in the QuickStart section
Expected behavior A clear and concise description of what you expected to happen.
Output when using jupynium command
Unable to open jupynium via command line, despite it being an installed Python module
jupynium 0.1.dev1+fg5faa4b
(SideNote: this plugin sounds amazing. It would solve a huge gap – making notebooks civilized coding environments.)
About this issue
- Original URL
- State: closed
- Created a year ago
- Comments: 18 (10 by maintainers)
Hi, I had the same issue with my setup where the kernel takes a long time to init. I fixed it by replacing: https://github.com/kiyoon/jupynium.nvim/blob/master/src/jupynium/selenium_helpers.py#L11 by : def wait_until_notebook_loaded(driver, timeout=30): This increases the timeout by 20 secs and it should solve your issue, (or maybe you need to bump it even more)
Fixed in #86
Mac probably has a different temp dir.
You can use this python code to figure out