tmux-plugins / tmux-resurrect

Persists tmux environment across system restarts.
MIT License
11.4k stars 424 forks source link

Restoring python virtualenv #240

Open anandtrex opened 6 years ago

anandtrex commented 6 years ago

I was wondering if there is some way to restore python virtual environments using tmux-resurrect.

ashb commented 6 years ago

I've written something that works for me - https://github.com/ashb/tmux-resurrect-virtualenvwrapper - let me know (via issue there) if the setup instructions are confusing/don't work. (I rushed the plugin, but the method works)

Note: you'll need to use my fork of tmux-resurrect until #267 is merged.

KhaimovMR commented 5 years ago

Tried @ashb's solution - doesn't work. At least if installed as described in the README.

Would be great to have such feature.

ashb commented 5 years ago

@KhaimovMR The instructions in my README?

Could you open an issue against my repo and we can discuss it there?

KhaimovMR commented 5 years ago

@KhaimovMR The instructions in my README?

Could you open an issue against my repo and we can discuss it there?

Ofcourse. :+1: Need to get some time

j-rahman commented 1 year ago

Is it currently possible to reactivate a conda environment when restoring a tmux server?

an4s911 commented 9 months ago

Any updates on this? Is it possible to restore python virtual environments?

EDIT: I just looked up the above mentioned PR #267 , apparently that PR is merged and it has virtualenv restoring additions. But that isn't working for

My setup: I open new tmux session in a python project directory then I run: source .venv/bin/activate so I was hoping when I resurrect the same session again, that the virtual environment also got resurrected. But it doesn't. It opens the right directories, and the layout I had setup, and everything is fine