Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Use modernnative ES6 import to load plotly.js bundle instead ofrequirejs which is no longer under active development#4763

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
archmoj merged 10 commits intomasterfromremove-requirejs
Oct 21, 2024

Conversation

@marthacryan
Copy link
Collaborator

@marthacryanmarthacryan commentedSep 11, 2024
edited
Loading

Note: this PR breaks support for notebook < 7.#4805 is already working on removing that code and adding a warning.

This removes references in the base renderers to requirejs. Requirejs is essentially unmaintained and newer versions of jupyter lab and jupyter notebook don't support it anymore, so this fixes some of the notebook 7 and lab 4 issues we've been seeing. Replaces requirejs support with native javascript modules:https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Modules

Alternative to#4762 that doesn't remove the CDN.

Fixes#4336.

janosh reacted with thumbs up emoji
@archmojarchmoj marked this pull request as ready for reviewSeptember 11, 2024 20:04
@archmoj
Copy link
Contributor

Great PR.
Please add a changelog also please mention if it is fixing#4336?

@marthacryan
Copy link
CollaboratorAuthor

Note: the orca tests are also failing on master

archmoj reacted with thumbs up emoji

@gvwilsongvwilson added featuresomething new P1needed for current cycle dependenciesPull requests that update a dependency file labelsSep 12, 2024
Copy link
Collaborator

@alexcjohnsonalexcjohnson left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

💃 I'm on board - not aware of any good use cases for requirejs here. Maybe there were in the past, but mostly those use cases would have applied to direct plotly.js use rather than plotly.py anyway.

@archmoj
Copy link
Contributor

Please update the description of the PR and include links & info aboutrequirejs.

@archmojarchmoj changed the titleRemove requirejsUse modernnative ES6 import to load plotly.js bundle instead ofrequirejs which is no longer under active developmentSep 18, 2024
marthacryanand others added2 commitsSeptember 18, 2024 21:38
Co-authored-by: Mojtaba Samimi <33888540+archmoj@users.noreply.github.com>
Copy link
Contributor

@archmojarchmoj left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

Great PR 🏆
Nicely completed.
💃

@archmoj
Copy link
Contributor

@LiamConnors do you have permission to merge this?

@LiamConnors
Copy link
Member

@marthacryan and@archmoj, when building Plotly.py using this PR and the master branch of Plotly.js, figures don't load in a classic notebook and the following error is in the console.

image

@gvwilson
Copy link
Contributor

@archmoj@marthacryan please sync with@LiamConnors about the issue he flagged (previous comment in this thread)

archmoj reacted with thumbs up emoji

@LiamConnors
Copy link
Member

Regarding the error saw in my previous comment. It only is an issue with notebook<7

archmoj and marthacryan reacted with thumbs up emoji

@archmoj
Copy link
Contributor

Is there any blocker for merging this PR?

@marthacryan
Copy link
CollaboratorAuthor

Is there any blocker for merging this PR?

@archmoj@LiamConnors@gvwilson I believe there isn't anything blocking merging since Liam was able to use this with Notebook 7.

archmoj and LiamConnors reacted with thumbs up emojiarchmoj reacted with rocket emoji

@archmoj
Copy link
Contributor

💃

@gvwilson
Copy link
Contributor

merge it!

archmoj and marthacryan reacted with rocket emoji

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@alexcjohnsonalexcjohnsonAwaiting requested review from alexcjohnson

1 more reviewer

@archmojarchmojarchmoj approved these changes

Reviewers whose approvals may not affect merge requirements

Assignees

@marthacryanmarthacryan

Labels

dependenciesPull requests that update a dependency filefeaturesomething newP1needed for current cycle

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Latex not working in jupyter notebook v7.

6 participants

@marthacryan@archmoj@LiamConnors@gvwilson@alexcjohnson

[8]ページ先頭

©2009-2025 Movatter.jp