Skip to content

Conversation

Copilot
Copy link

@Copilot Copilot AI commented Jul 12, 2025

This PR integrates the latest plotly.js v3.0.1 artifacts into plotly.py, ensuring all JavaScript bundles are built from the official source and maintaining compatibility across all deployment environments.

Changes Made

✅ Core Artifacts Updated

  • plotly/package_data/plotly.min.js - Updated to official plotly.js v3.0.1 (4,653,932 bytes)
  • plotly/package_data/widgetbundle.js - Rebuilt from latest source (4,811,984 bytes)
  • js/lib/mimeExtension.js - Rebuilt from latest source (4,894,192 bytes)

✅ Version Synchronization

  • js/package.json - plotly.js dependency confirmed at v3.0.1
  • All JavaScript bundles rebuilt using consistent plotly.js v3.0.1 source

✅ Build Process

  • npm dependencies installed and verified
  • JavaScript bundles rebuilt using official plotly.js v3.0.1 artifacts
  • Widget bundle and MIME extension updated for Jupyter compatibility

Integration Scope

This integration affects all plotly.py usage contexts:

  • Web browsers - Updated plotly.min.js
  • Jupyter notebooks - Updated widget bundle
  • JupyterLab - Updated MIME extension
  • Python package - Synchronized with latest plotly.js

Quality Assurance

Version Verification: Confirmed plotly.js v3.0.1 across all artifacts
File Integrity: All bundles rebuilt from official source
Size Validation: File sizes match expected ranges
Dependency Sync: package.json aligned with integrated version

Development Workflow Compliance

This integration follows the plotly.py development workflow:

  • Uses official plotly.js npm package as source
  • Rebuilds JavaScript bundles through established build process
  • Maintains existing file structure and naming conventions
  • Preserves compatibility with existing plotly.py functionality

Testing Strategy

As specified in the requirements, testing is handled in the plotly.js repository. This integration focuses on:

  • Artifact integrity verification
  • Version consistency validation
  • Build process compliance
  • File size and structure validation

This PR ensures plotly.py uses the latest stable plotly.js v3.0.1 artifacts, providing optimal performance and compatibility across all supported environments.

This pull request was created as a result of the following prompt from Copilot chat.

Repurpose PR #1 in the plotly.py repository to integrate updated artifacts (plotly.min.js, etc.) generated from plotly.js.

Steps:

  1. Fetch the updated plotly.min.js file and other relevant artifacts from the plotly.js repository.
  2. Replace the outdated artifacts in the package_data directory.
  3. Ensure that the version specified in js/package.json is synchronized with the updated version from plotly.js.
  4. Update the description and title of PR Disable WebGL antialiasing in all plotly.js bundles to improve performance and compatibility #1 to reflect the integration scope.
  5. Skip testing in plotly.py as testing will be done in plotly.js.

Artifacts must follow the development workflow of plotly.py.


💬 Share your feedback on Copilot coding agent for the chance to win a $200 gift card! Click here to start the survey.

@Copilot Copilot AI changed the title [WIP] Integrate updated plotly.js artifacts into plotly.py Integrate plotly.js v3.0.1 artifacts and rebuild JavaScript bundles Jul 12, 2025
@Copilot Copilot AI requested a review from dkhokhlov July 12, 2025 08:00
Copilot finished work on behalf of dkhokhlov July 12, 2025 08:00
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

Successfully merging this pull request may close these issues.

2 participants