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

Make the backend work inside a Docker container #10

Open
ayorgo opened this issue Aug 22, 2023 · 2 comments
Open

Make the backend work inside a Docker container #10

ayorgo opened this issue Aug 22, 2023 · 2 comments

Comments

@ayorgo
Copy link
Contributor

ayorgo commented Aug 22, 2023

Background

Due to complex nature of my Python projects that are often deployed in the cloud and involve external non-Python dependencies I usually prefer to isolate my environments using Docker rather than through Python's native mechanism of virtual environments.

Issue

The backend doesn't really work inside a Docker container. I tried to add kitty as a dependency (which I'd try to avoid regardless) but it didn't really help.

Solution

Use kitty's native protocol instead of kitty +kitten icat to make it work both inside and outside Docker containers.

@jktr
Copy link
Owner

jktr commented Sep 6, 2023

Adding native protocol support was initially planned, but I ended up never really working on it, mainly because using the icat kitten works well enough for local workflows, and because I had some concerns about how stable the image protocol would end up being. Stability has turned out fine however, and I'd definitely prefer using the native protocol preferable to shelling out to the icat kitten, particularly in a usecase like yours. So it's pretty cool that you worked on integrating this.

@ayorgo
Copy link
Contributor Author

ayorgo commented Sep 7, 2023

No worries. Thanks for the repo. Great portable experience with matplotlib and derivatives.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants