Back

Plt2Img

From Python charts to image, instantly

3

Plt2Img Converter

Plt2Img website

Astro Python Docker

Plt2Img is a web tool that converts Matplotlib code into images. Ideal for developers and data scientists who want to generate visualizations from Python code without needing to run the code locally. With Plt2Img, you can simply upload your Matplotlib code and receive a ready-to-use image for reports, presentations and more

Supported libraries: 📊 Matplotlib 🔢 Numpy 🐼 Pandas 🌊 Seaborn 👩🏾‍🔬 Scipy 🐍 Sympy

⏲️ Save time

Steps☠️ Not using Plt2Img🌟 Using Plt2Img
1️⃣Generate a Matplolib code with ChatGPTGenerate a Matplolib code with ChatGPT
2️⃣Go to the folder where the Python virtual environment (.venv) is locatedGo to Plt2Img.online
3️⃣Open a terminalPaste the code and obtain the image
4️⃣Activate Virtual Environment: source .venv/bin/activate🛌🏽😴
5️⃣Run Jupyter Notebook: jupyter notebook🛌🏽😴
6️⃣Create a Jupyter file, paste the code y obtain the image🛌🏽😴

Visit Plt2Img Converter to tested it!

▶️ Video Demo

https://github.com/user-attachments/assets/cd868f9c-ec6c-4135-b8ea-bf6d025d2306

📖 Installation

CommandAction
git clone https://github.com/AlbertLnz/plt2imgClone the repository
cd plt2imgEnter to the project
npm installInstall dependencies
cd src/backendEnter to the backend project
docker build -t plt2img .Run the Docker image
docker run -d -p 5000:5000 --name plt2imgContainer plt2imgRun the Docker container with the image
npm run devStarts local dev server at localhost:4321
FrontendFrontend is running at http://localhost:4321
BackendBackend is running at http://localhost:5000

[!IMPORTANT] Remember to configure the correct fetch url in the src/components/App.astro file. Remember to stop the container that is running in 2nd plane when you are done.

☕ Buy me a coffee

"Buy Me A Coffee"

@AlbertLnz