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.

Azure ML Widgets not working when connecting to Azure ML Notebooks from VS Code

See original GitHub issue

Environment data

  • VS Code version: 1.55.2
  • Jupyter Extension version (available under the Extensions sidebar): v2021.5.745244803
  • Python Extension version (available under the Extensions sidebar): v2021.4.765268190
  • OS (Windows | Mac | Linux distro) and version: Windows 20H2
  • Python and/or Anaconda version: 3.6
  • Type of virtual environment used (N/A | venv | virtualenv | conda | …): XXX
  • Jupyter server running: Local | Remote | N/A: remote

Expected behaviour

Widget should be displayed.

Actual behaviour

Output: No renderer could be found for MIME type: application/aml.mini.widget.v1.

Steps to reproduce:

Run the following, replacing source directory and compute target as necessary:

from azureml.widgets import RunDetails

ws = Workspace.from_config()
experiment = Experiment(workspace=ws, name='day1-experiment-hello')

config = ScriptRunConfig(source_directory='./code/hello', script='hello.py', compute_target='TestComputeForDon')

run = experiment.submit(config)
RunDetails(run).show()

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:20 (12 by maintainers)

github_iconTop GitHub Comments

1reaction
ansaxena1commented, May 24, 2021

I did run this notebook in classic Jupyter (accessed through AML to use my compute instance) and this is the output after running there. Is there something else you’d like me to try running?

0reactions
DonJayamannecommented, Jul 21, 2021

Problem was, the output renderer selected was text/plain, vs code rememnbers this, hence widgets were never rendered.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to test Azure AML Widgets · microsoft/vscode-jupyter Wiki
If testing against Azure ML Remote Compute, then launch VS Code from the compute instance, create a notebook as documented above.
Read more >
Azure Machine Learning in VS Code
The Azure Machine Learning VS Code extension makes it easy to connect to and access resources in compute instances in real time. For...
Read more >
Run Jupyter notebooks in your workspace - Azure
Learn how run a Jupyter notebook without leaving your workspace in Azure Machine Learning studio.
Read more >
Azure ml notebook does not show widgets from ipywidgets
Azure ml notebook does not show widgets from ipywidgets. ipywidgets seems to work fine for the simplest usages, i.e. just using a slider....
Read more >
azureml.widgets.RunDetails class - Azure Machine Learning ...
Remarks · Verify that the azure-widgets package is installed and if not, install it. shell. Copy. sudo -i pip install azureml-widgets · Install...
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