luk400 / vim-jukit

Jupyter-Notebook inspired Neovim/Vim Plugin
MIT License
602 stars 23 forks source link

Feature request: source venv on output split launch #104

Open rileythai opened 1 year ago

rileythai commented 1 year ago

For development workflows, jukit could source the venv in the current working directory while opening an output split. This should be helpful for users who want to run quick checks, tests, or other actions in an iPython split.

I presume all that would have to be done is get it to find venv or .venv in the CWD and source it beforehand, but something really simple would be:

source .venv/bin/activate && ipython -i -c ...{REST OF COMMAND}
arorashivoy commented 5 days ago

you can do that using :JukitOut source .venv/bin/activate which would run the source .venv/bin/activate line first and then open the Jukit Output