Skip to content
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 our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Investigate rendering Vega, Plotly etc outputs when loading an existing notebook #11218

Closed
DonJayamanne opened this issue Aug 30, 2022 · 3 comments
Assignees
Labels
bug Issue identified by VS Code Team member as probable bug triage-needed Issue needs to be triaged verified Verification succeeded
Milestone

Comments

@DonJayamanne DonJayamanne added the bug Issue identified by VS Code Team member as probable bug label Aug 30, 2022
@github-actions github-actions bot added the triage-needed Issue needs to be triaged label Aug 30, 2022
@DonJayamanne DonJayamanne self-assigned this Sep 2, 2022
@DonJayamanne DonJayamanne added this to the August 2022 milestone Sep 5, 2022
@DonJayamanne
Copy link
Contributor Author

Issues

Findings:

Suggestions

  • Load vega from user scripts folder and fall back to renderers
    • Why?
    • If users have a new/custom version of vega installed, then we use that instead of what we ship.
    • We've run into this for plotly, where users have latest version of plotly but we ship an older version of plotly.
    • Similarly this could apply to users who have custom (older) versions and want to use that instead of the latest version.

@DonJayamanne
Copy link
Contributor Author

Summary of discussion for issue 'Support Vega'

  • Todo for @mjbvz
    • Update js renderer to evaluate the js code in a private scope
    • Add API to transform the JS code, e.g. transform_function(originalJsCode): Promise<....>
  • Jupyter extension could try (todo for @DonJayamanne )
    • Creating a custom renderer that extends the js renderer by providing the transformed js code
    • This could then also communicate back with the extension host,
    • This way the render will wait for widget scripts to load completely before rendering the js

Summary of discussion for issue 'Plotly output generated... not shown after re-opening notebook

  • Problem seems to be with the built-in amd module.
  • Using require.js to overwrite vscodes amd module seems to fix this.

@DonJayamanne
Copy link
Contributor Author

DonJayamanne commented Oct 16, 2022

Closing this issue as we've resolved #6404
And other remaining issues can be handled separately.
Nothing to verify here, please review #6404

@rebornix rebornix added the verified Verification succeeded label Oct 26, 2022
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Sep 25, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Issue identified by VS Code Team member as probable bug triage-needed Issue needs to be triaged verified Verification succeeded
Projects
None yet
Development

No branches or pull requests

3 participants