Plt2Img
From Python charts to image, instantly
3
Plt2Img Converter
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 ChatGPT | Generate a Matplolib code with ChatGPT |
2️⃣ | Go to the folder where the Python virtual environment (.venv) is located | Go to Plt2Img.online |
3️⃣ | Open a terminal | Paste 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
Command | Action |
---|---|
git clone https://github.com/AlbertLnz/plt2img | Clone the repository |
cd plt2img | Enter to the project |
npm install | Install dependencies |
cd src/backend | Enter to the backend project |
docker build -t plt2img . | Run the Docker image |
docker run -d -p 5000:5000 --name plt2imgContainer plt2img | Run the Docker container with the image |
npm run dev | Starts local dev server at localhost:4321 |
Frontend is running at http://localhost:4321 |
---|
Backend 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.