kiyoon / jupynium.nvim

Selenium-automated Jupyter Notebook that is synchronised with NeoVim in real-time.
MIT License
481 stars 15 forks source link

No action on JupyniumStartAndAttachToServer and "Not an editor command JupyniumExecuteSelectedCells" #106

Open pablocael opened 7 months ago

pablocael commented 7 months ago

Describe the bug A clear and concise description of what the bug is.

To Reproduce

For JupyniumStartAndAttachToServer command:

Just open a .ju.py file and use the command:

:JupyniumStartAndAttachToServer

Nothing happens.

for Not an editor command JupyniumExecuteSelectedCells" error message:

Steps to reproduce the behavior:

  1. Create a simple test.ju.py file
  2. Create a simple cell usin #%% separator
  3. Press space, x to execute the Cell

Expected behavior Cell executed.

Logs in /tmp/jupynium/logs/

2024-02-15 17:58:15,677 - jupynium.cmds.jupynium:   93 - INFO - Using firefox profile: None
2024-02-15 17:58:17,337 - jupynium.cmds.jupynium:  397 - INFO - Writing Jupyter Notebook server log to: /tmp/tmpbuacinx0
2024-02-15 17:58:18,490 - jupynium.cmds.jupynium:  546 - INFO - No nvim attached. Waiting for nvim to attach. Run jupynium --nvim_listen_addr /tmp/example (use `:echo v:servername` of nvim)
2024-02-15 17:58:21,852 - jupynium.cmds.jupynium:  592 - INFO - Browser disconnected. Quitting Jupynium.
2024-02-15 17:58:21,859 - jupynium.cmds.jupynium:  608 - SUCCESS - Piecefully closed as the browser is closed.
2024-02-15 17:58:21,875 - jupynium.cmds.jupynium:  344 - INFO - Jupyter Notebook server (pid=1304524) has been killed.

Operation system: Linux Fedora 39

kiyoon commented 7 months ago

If it can't attach to the server, then it can't execute anything.
So let's focus on getting it to attach.

  1. Can you try :JupyniumStartAndAttachToServerInTerminal and see if it's the same message?
  2. Does your firefox work with command firefox?
  3. Does your firefox work with Selenium with this simple code?
    from selenium import webdriver
    driver = webdriver.Firefox()
    driver.get("https://www.selenium.dev/selenium/web/web-form.html")