A web-based machine learning workspace for creating projects, managing experiments, building workflows, organizing industry scenarios, and integrating with the wider Beep platform ecosystem.

Table Of Contents

  • Overview
  • Core Capabilities
  • Quick Start
  • Startup And First Run Behavior
  • Architecture Overview
  • Application Layout
  • Configuration
  • Common User Workflows
  • Integrations
  • API Surface
  • Developer Guide
  • Troubleshooting
  • Additional References

Overview

Beep.Python.MLStudio is intended to make machine learning project work more repeatable and accessible. The application combines project management, experiment orchestration, workflow templates, dataset handling, and industry-focused guidance into a single Flask-based UI.

The platform is designed for two main audiences:

  • Users who want to create and manage ML projects with guided UI flows.
  • Developers who need to extend routes, services, workflows, integrations, and templates.

Core Capabilities

Project And Experiment Management

  • Create and organize machine learning projects
  • Track experiments and compare runs
  • Associate datasets, notebooks, workflows, and outputs with projects
  • Support different ML frameworks and project layouts

Workflow Authoring

  • Use visual workflow builders and templates
  • Reuse predefined workflows for common scenarios
  • Apply scenario-linked workflows to projects
  • Evolve workflows through versions and guided steps

Data And Model Operations

  • Upload and preview datasets
  • Work with training inputs and evaluation outputs
  • Connect to model operations through the app and related services
  • Support interactive views for project and experiment activity

Industry Guidance

  • Industry modes for specialized terminology and workflows
  • Scenario-driven onboarding and examples
  • Marine and other vertical-oriented scenario seeds and templates
  • Documentation tailored to user and developer needs

Platform Integration

  • Optional coordination with Host Admin
  • ML server integration for model-serving or remote execution scenarios
  • Community integration for publishing or downstream collaboration flows

Quick Start

The recommended path is still one command. Do not manually create environments, install packages, or initialize the database unless you are intentionally doing a developer or repair workflow.

Windows

run.bat

Linux Or macOS

./run.sh

macOS Finder Launch

Double-click run.command.

Cross-Platform Python Launcher

python run_mlstudio.py

Startup And First Run Behavior

The launcher handles the standard first-run setup automatically.

It will:

  • check Python compatibility
  • set up the local bootstrap Python runtime when required
  • create the working virtual environment
  • install Python dependencies from requirements.txt
  • create or repair basic configuration files
  • initialize the database
  • create required directories used by the application
  • optionally coordinate with related Beep services when configured
  • start ML Studio and open the application in a browser

Default local application URL: http://127.0.0.1:5001

Architecture Overview

ML Studio uses an application-factory-based Flask architecture with route modules, service modules, model definitions, template views, and static assets separated by responsibility.

At a high level:

  • app/init.py creates and wires the Flask app
  • app/routes contains blueprint packages for UI and API behavior
  • app/services contains business logic and integration helpers
  • app/models contains SQLAlchemy models and persistence objects
  • templates contains Jinja views for dashboard, documentation, workflows, experiments, setup, admin, and related areas
  • static contains CSS, JavaScript, fonts, and images

Important route groups include:

  • dashboard
  • projects
  • experiments
  • models
  • settings
  • industry
  • documentation
  • tutorials
  • faq
  • competitions
  • profile
  • admin
  • API v1 routes under app/routes/api

Application Layout

High-Value Files And Folders

  • app: main application package
  • app/routes: route blueprints and page/API entry points
  • app/services: service-layer logic, content handling, integration helpers, workflow logic
  • app/models: data models
  • templates: HTML templates
  • static: CSS, JavaScript, assets
  • scripts: operational and seeding scripts
  • workflow_templates: reusable workflow definitions
  • config/mlstudio_config.json: application configuration source
  • SETTINGS_GUIDE.md: settings reference

Configuration

The launcher creates a local environment configuration when needed. Typical settings include:

SECRET_KEY=change-me
DEBUG=true
HOST=127.0.0.1
PORT=5001
DATABASE_URL=sqlite:///mlstudio.db
MAX_UPLOAD_SIZE=100
UPLOAD_FOLDER=data
PROJECTS_FOLDER=projects

Use config/mlstudio_config.json and SETTINGS_GUIDE.md as the authoritative references for application behavior and supported settings.

Common User Workflows

Create A Project

  1. Start the application.
  2. Open the Projects area.
  3. Create a new project with name, description, and framework selection.
  4. Attach datasets, workflows, or notebooks as needed.
  5. Use the project as the container for experiments and results.

Run Experiments

  1. Open a project.
  2. Create or open an experiment.
  3. Select datasets, parameters, and model settings.
  4. Launch the run.
  5. Review metrics, logs, and outputs.

Use Workflow Templates

  1. Open the workflow area.
  2. Choose an existing workflow template or create a new one.
  3. Link workflow steps to project operations.
  4. Save and reuse the workflow for later runs.

Explore Industry Scenarios

  1. Open the Industry section.
  2. Choose an industry mode or scenario.
  3. Review its suggested use cases, datasets, and workflow ideas.
  4. Apply those templates or concepts to a project.

Integrations

Host Admin

ML Studio can coordinate with Host Admin instead of requiring code copying or direct shared runtime assumptions. Review INTEGRATION.md and the launcher behavior when you need environment or orchestration context.

ML Server

The repository includes ML server integration surfaces through templates, routes, and API modules. Treat ML server connectivity as a supported extension point, not just an external dependency.

Community

Community publishing and connected workflows are represented in API and UI integrations so project outputs can feed broader collaboration scenarios.

API Surface

REST endpoints live under /api/v1. The exact route set is defined by the route modules registered in app/routes/api/init.py.

Representative API areas include:

  • projects
  • experiments
  • workflows
  • files
  • environments
  • settings
  • community
  • ML server
  • webhooks
  • workflow runs and versions

Use the in-app API reference at /documentation/api-reference for live documentation-oriented guidance.

Developer Guide

Local Development Workflow

Use the standard launcher first so you are working inside the same startup path as normal users. Only switch to direct execution once the environment and configuration are already stable.

Useful entry points:

  • run.py
  • wsgi.py
  • run_mlstudio.py
  • init_db.py

How To Extend The Application

When adding features:

  1. Put request handling in the appropriate route package.
  2. Put business rules in services, not in view functions.
  3. Add or update models only when the data contract changes.
  4. Keep templates focused on rendering, not business logic.
  5. Update in-app help and README content when behavior changes.

Documentation And Help Extension Points

  • app/routes/documentation controls the documentation hub
  • app/routes/tutorials controls tutorials
  • app/routes/faq controls FAQ behavior
  • app/services/help/content_service.py is the current content service for help data

Workflow Extension Points

  • workflow_templates for reusable workflow definitions
  • scripts/seed_marine_scenarios.py for seeded example content
  • app/routes/api/workflows.py and related route modules for API-side workflow handling

Troubleshooting

Application Does Not Start

  • Verify Python 3.8+ is available.
  • Run the standard launcher rather than invoking internal modules first.
  • Check whether the embedded Python setup completed.
  • Review startup_output.txt and startup_error.txt when present.

Environment Or Dependency Problems

  • Re-run the launcher so the environment setup path can self-repair.
  • Verify requirements.txt is present and readable.
  • If needed, rerun setup_embedded_python.bat or setup_embedded_python.sh.

Database Issues

  • Review init_db.py and check_db.py.
  • Confirm the configured database URL is valid.
  • Use the generated setup and debug output files to trace startup behavior.

Help Or Documentation Looks Incomplete

  • Check the documentation routes under /documentation.
  • Verify help JSON content exists under app/data/help.
  • Confirm template files under templates/documentation, templates/tutorials, and templates/faq match the expected route behavior.

Additional References

  • SETTINGS_GUIDE.md
  • run_mlstudio.py
  • app/routes/documentation/routes.py
  • app/services/help/content_service.py
  • workflow_templates
  • scripts

In-App Help

After startup, use these routes:

  • /documentation for the documentation hub
  • /documentation/user-guide for user help
  • /documentation/developer-guide for developer help
  • /documentation/api-reference for API help
  • /faq for common questions
  • /tutorials for walkthroughs

Linux/macOS

./run.sh

Or cross-platform

python run_mlstudio.py ```

That's all you need! The launcher handles: - ✅ Virtual environment setup - ✅ Dependency installation - ✅ Database initialization - ✅ Configuration file creation - ✅ Host Admin detection and startup - ✅ MLStudio launch

No manual steps like cd, pip install, python init_database.py, etc. - it's all automatic!

Step 2: Create a New ML Project

  1. Open http://127.0.0.1:5001 in your browser
  2. Click "New Project"
  3. Enter project name and select framework
  4. MLStudio automatically creates a virtual environment via Host Admin
  5. Start coding your ML model

3. Train a Model

  1. Open your project
  2. Upload or select your dataset
  3. Write training code or use the visual builder
  4. Click "Train" and monitor progress in real-time
  5. View evaluation metrics and visualizations

4. Compare Models

  1. Train multiple models with different parameters
  2. View comparison dashboard
  3. Select best model based on metrics
  4. Export model for deployment

🔒 Security

  • Session-based authentication
  • Project-level access control
  • Secure file upload validation
  • Environment isolation via a local bootstrap Python runtime and virtual environments

🛠️ Troubleshooting

"Environment creation failed"

  • Ensure Python is installed and accessible, or let the launcher download the local bootstrap Python runtime
  • Verify disk space is available
  • Check that the providers directory is writable

"Embedded Python not found" or "Embedded Python is required"

  • This runtime is used to bootstrap .venv on first run
  • MLStudio itself runs from .venv after bootstrap completes
  • Run setup_embedded_python.bat (Windows) or ./setup_embedded_python.sh (Linux/macOS) if first-run bootstrap fails
  • The launcher will automatically set it up on first run when .venv does not exist

Port Already in Use

  • Change PORT in .env to a different port (e.g., 5002)
  • Or stop the process using port 5001

Python Not Found

  • Ensure Python 3.8+ is installed
  • Add Python to your system PATH
  • On Windows, check "Add Python to PATH" during installation

🤝 Contributing

Contributions are welcome! Please feel free to submit a Pull Request.


📝 License

This project is licensed under the MIT License - see the LICENSE file for details.


🙏 Acknowledgments

  • Beep.Python.Host.Admin - Environment management
  • Flask - Web framework
  • Scikit-learn - ML library
  • Bootstrap - UI framework

Made with ❤️ for the ML community


Version: 1.0.0
Last Updated: 2024