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

itkwidgets functions not working in spyder-notebook #407

Open
sabino-ramirez opened this issue Mar 28, 2023 · 2 comments
Open

itkwidgets functions not working in spyder-notebook #407

sabino-ramirez opened this issue Mar 28, 2023 · 2 comments

Comments

@sabino-ramirez
Copy link

Description of your problem

Itkwidgets functions not working in spyder-notebook environment.
What steps will reproduce the problem?

  1. Install spyder using mambaforge
  2. Load notebook using itkwidgets functions (view, compare, etc)
  3. Run cells. No graphical results.

What is the expected output? What do you see instead?
Expected to see visual result for the itkwidgets calls. Instead, output is a text result of the internal viewer call with its parameters; but no graphical results.

Please provide any additional information below (stack trace, screenshots, a gif, etc)
Expected result:
Screenshot from 2023-03-28 13-21-12

Current output in spyder:
Screenshot from 2023-03-28 13-25-17

Versions and main components

  • Spyder Version: 5.4.2
  • Python Version: 3.11.0
  • Qt Version: 5.15.8
  • PyQt Version: 5.15.6
  • Jupyter Notebook Version: 6.4.12
  • Operating system: Ubuntu 22.04.2 LTS

Dependencies

Please go to the menu entry Help > Optional Dependencies (or
Help > Dependencies), press the button Copy to clipboard
and paste the contents below:

Mandatory:

atomicwrites >=1.2.0 : 1.4.1 (OK)
chardet >=2.0.0 : 5.1.0 (OK)
cloudpickle >=0.5.0 : 2.2.1 (OK)
cookiecutter >=1.6.0 : 2.1.1 (OK)
diff_match_patch >=20181111 : 20200713 (OK)
intervaltree >=3.0.2 : 3.0.2 (OK)
IPython >=7.31.1;<9.0.0 : 8.11.0 (OK)
jedi >=0.17.2;<0.19.0 : 0.18.2 (OK)
jellyfish >=0.7 : 0.9.0 (OK)
jsonschema >=3.2.0 : 4.17.3 (OK)
keyring >=17.0.0 : 23.13.1 (OK)
nbconvert >=4.0 : 7.2.9 (OK)
numpydoc >=0.6.0 : 1.5.0 (OK)
parso >=0.7.0;<0.9.0 : 0.8.3 (OK)
pexpect >=4.4.0 : 4.8.0 (OK)
pickleshare >=0.4 : 0.7.5 (OK)
psutil >=5.3 : 5.9.4 (OK)
pygments >=2.0 : 2.14.0 (OK)
pylint >=2.5.0;<3.0 : 2.17.1 (OK)
pylint_venv >=2.1.1 : 3.0.1 (OK)
pyls_spyder >=0.4.0 : 0.4.0 (OK)
pylsp >=1.7.1;<1.8.0 : 1.7.1 (OK)
pylsp_black >=1.2.0 : 1.2.1 (OK)
qdarkstyle >=3.0.2;<3.1.0 : 3.0.3 (OK)
qstylizer >=0.2.2 : 0.2.2 (OK)
qtawesome >=1.2.1 : 1.2.3 (OK)
qtconsole >=5.4.0;<5.5.0 : 5.4.1 (OK)
qtpy >=2.1.0 : 2.3.0 (OK)
rtree >=0.9.7 : 1.0.1 (OK)
setuptools >=49.6.0 : 67.6.0 (OK)
sphinx >=0.6.6 : 6.1.3 (OK)
spyder_kernels >=2.4.2;<2.5.0 : 2.4.2 (OK)
textdistance >=4.2.0 : 4.5.0 (OK)
three_merge >=0.1.1 : 0.1.1 (OK)
watchdog >=0.10.3 : 3.0.0 (OK)
xdg >=0.26 : 0.28 (OK)
zmq >=22.1.0 : 25.0.2 (OK)

Optional:

cython >=0.21 : None (NOK)
matplotlib >=3.0.0 : 3.7.1 (OK)
numpy >=1.7 : 1.24.2 (OK)
pandas >=1.1.1 : None (NOK)
scipy >=0.17.0 : None (NOK)
sympy >=0.7.3 : None (NOK)

Spyder plugins:

spyder_notebook.notebookplugin 0.4.0 : 0.4.0 (OK)
spyder_vim.spyder.plugin 0.1.0 : 0.1.0 (OK)

@ccordoba12
Copy link
Member

Hey @sabino-ramirez, thanks for reporting. We're working to improve the situation regarding widgets in Spyder-notebook (see #396), but it'll take between three to six months until that work is finally released.

@jitseniesen
Copy link
Member

jitseniesen commented Sep 15, 2024

I suspect this works since spyder-notebook 0.5 but I can't get itkwidgets to work, so would it please be possible for you to test whether it works after you update spyder-notebook?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants