question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Updating the plotly.js version used in the plotly mimetype renderer

See original GitHub issue

Hi, plotly.py maintainer here. First off, thanks for supporting the plotly mimetype. This makes vscode-python a really nice environment for plotly.py users.

I’m working on a refactor/generalization of the plotly.py rendering subsystem (See https://github.com/plotly/plotly.py/pull/1474) and one of the things I’d like to do is automatically apply a dark theme (https://medium.com/@plotlygraphs/introducing-plotly-py-theming-b644109ac9c7) when plotly.py detects that it’s running in vscode. For this to work, the plotly.js version used in the vscode-python mimetype renderer would need to be updated so that it includes theme support.

I’d be happy to submit a PR for this if someone could point me to where the mimetype renderer is maintained (I didn’t find it when searching this repo).

As a side question, do you have a recommendation for the best way to detect that a Python session is running in VSCode? Right now I’m looking for the presence of the VSCODE_PID environment variable.

Thanks! 🙇

Environment data

  • VS Code version: Version 1.32.3 (1.32.3)
  • Extension version (available under the Extensions sidebar): 2019.3.6139

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:6 (2 by maintainers)

github_iconTop GitHub Comments

2reactions
rchiodocommented, Mar 27, 2019

Do you have any established processes for dependency updates like this? I’m happy to submit a PR with just the package.json/package-lock.json updates, but let me know if there’s anything else that would make things easier on your end.

Submitting a PR would be the quickest/easiest I think. Our CI system for the PR should verify that the update works.

0reactions
captainsafiacommented, Apr 23, 2019

@jonmmease Thanks for following up on the other thread! I’ve merged and released the bump to @nteract/plotly. Moving forward, updates will be released on a weekly cadence alongside updates in the nteract monorepo. I hope this unblocks your work here.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Updating the plotly.js version used in the plotly mimetype ...
I'm working on a refactor/generalization of the plotly.py rendering subsystem (See plotly/plotly.py#1474) and one of the things I'd like to do ...
Read more >
Displaying figures in Python - Plotly
Detailed examples of Displaying Figures including changing color, size, log axes, and more in Python.
Read more >
Getting started with plotly in Python
Detailed examples of Getting Started with Plotly including changing color, size, log axes, and more in Python.
Read more >
How to define plotly.js version in plotly.py? - Plotly Python
Hi @meteoDan, when there is a new release of plotly.js, a release of plotly.py follows usually a few days later so you should...
Read more >
Jupyterlab-plotly not compatible with jupyterlab 3.0
I was trying to update my jupyterlab to the 3.0 version, but after the update, my plotly extension stop working. Here are the...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found