Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Connect to python kernel and virtual environment #357

Open
manu0600 opened this issue Jan 2, 2024 · 0 comments
Open

Connect to python kernel and virtual environment #357

manu0600 opened this issue Jan 2, 2024 · 0 comments
Labels
fix-docs Documentation needs to be/is being updated/fixed to avoid similar issues

Comments

@manu0600
Copy link

manu0600 commented Jan 2, 2024

I would like to use iron.nvim with a specified kernel in a virtual environment. I tried already to edit my config as such:

local iron = require("iron.core")
iron.setup {
  config = {
    repl_definition = {
      python = {
        command = "source ~/venv/default/bin/activate && jupyter console --existing",
        type = "bracketed"
      }
    },
  }
}

This technically works, but in the ipython console, I would like to change directory to the current working directory, and also instead of using simply --existing, it would be best if I could spawn a list of the currently available kernels (like the output from ~/.local/share/jupyter/runtime/) and select which kernel to use as --existing kernel-xxxxxxxxxxx.json

Also it would be great from that list to be able to choose "normal ipython" and launch a new ipython window like it's normally done in the defaults of iron.nvim

Could you help me achieve this?

@hkupty hkupty added the fix-docs Documentation needs to be/is being updated/fixed to avoid similar issues label Mar 31, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
fix-docs Documentation needs to be/is being updated/fixed to avoid similar issues
Projects
None yet
Development

No branches or pull requests

2 participants