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.

Widget not showing on VSCode with Remote SSH

See original GitHub issue

Hello,

I am on MacOS and using itkwidgets 0.32.0 on VSCode 1.55.2 to work on a remote Linux Server using the Remote-SSH Extension 0.65.1. However, the itkwidget is not showing up in the interactive python console. I set the python.loggin.level to debug, but didn’t see any meaningful errors or warnings in the Jupyter and Python output console.

This here is my test script:

import numpy as np
from itkwidgets import view
image = np.random.rand(100,100)
view(image)

When running the same script locally, without the Remote Extension, the widget is working nicely. It even works, when I connecting to an existing Jupyter server running on said remote Linux Server.

It might not be correlated, but when I tried adding “jupyter.widgetScriptSources”: [“jsdelivr.com”, “unpkg.com”], to the remote ssh settings I got this VSCode warning when running the test script:

Unable to load a compatible version of the widget 'itkwidgets'. Expected behavior may be affected.

Issue Analytics

  • State:open
  • Created 2 years ago
  • Comments:8 (2 by maintainers)

github_iconTop GitHub Comments

2reactions
oewaycommented, May 22, 2022

Hmm, I think it’s a bit tricky to get it work there, it’s not a normal Jupyter environment as I understand, to get it work we need a way to do bidirectional messaging between the editor and the kernel, plus a way to show the iframe. In the normal Jupyter we used Comm messages, I am not sure if that is available and what need to be adjusted.

I will need to check it out.

1reaction
tlambert03commented, Apr 23, 2022

seeing a similar thing here. remoting into linux, using itkwidgets.view shows nothing (but no error either):

Untitled

FWIW: If I click the ... next to where the widget, I have the option to pick a renderer (one shows the text repr, the other shows the empty space)

Untitled

@thewtex, lemme know if I can help troubleshoot! thanks 😃

Read more comments on GitHub >

github_iconTop Results From Across the Web

Remote Development Tips and Tricks - Visual Studio Code
Visual Studio Code Remote Development troubleshooting tips and tricks for SSH, Containers, and the Windows Subsystem for Linux (WSL)
Read more >
Debugging in Visual Studio Code
VS Code keeps debugging configuration information in a launch.json file located in a .vscode folder in your workspace (project root folder) or in...
Read more >
IntelliSense in Visual Studio Code
This works regardless of the suggest widget showing or not. Also, pressing Tab after inserting a suggestions will insert the next best suggestion....
Read more >
User and Workspace Settings - Visual Studio Code
When you search using the Search bar, it will not only show and highlight the ... codeLens setting while there is a @lang:css...
Read more >
Remote Development using SSH - Visual Studio Code
Working with local tools. The Remote - SSH extension does not provide direct support for sync'ing source code or using local tools with...
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