# Pyvistaqt, Ipywidgets installed but giving error about installation

**URL:** <https://mne.discourse.group/t/pyvistaqt-ipywidgets-installed-but-giving-error-about-installation/8504>\
**Category:** Support & Discussions\
**Created:** [March 18, 2024, 3:56pm UTC](https://mne.discourse.group/t/pyvistaqt-ipywidgets-installed-but-giving-error-about-installation/8504 "2024-03-18T15:56:22Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![egemen4552](https://avatars.discourse-cdn.com/v4/letter/e/a9adbd/32.png) [@egemen4552](https://mne.discourse.group/u/egemen4552)\
**Post date:** [March 18, 2024, 3:56pm UTC](https://mne.discourse.group/t/pyvistaqt-ipywidgets-installed-but-giving-error-about-installation/8504/1 "2024-03-18T15:56:22Z")

</div>

Does someone know why am i getting attached error? py310 environment is activated for sure, I restarted terminal and etc. but it is giving same error

Windows = 11

Name: mne  
Version: 1.6.1  
Summary: MNE-Python project for MEG and EEG data analysis.  
Home-page:  
Author:  
Author-email: Alexandre Gramfort [alexandre.gramfort@inria.fr](mailto:alexandre.gramfort@inria.fr)  
License: BSD-3-Clause  
Location: c:\users\egeme\anaconda3\envs\py310\lib\site-packages  
Requires: decorator, jinja2, lazy-loader, matplotlib, numpy, packaging, pooch, scipy, tqdm  
Required-by:

Name: pyvistaqt  
Version: 0.11.0  
Summary: pyvista qt plotter  
Home-page: [GitHub - pyvista/pyvistaqt: Qt support for PyVista](https://github.com/pyvista/pyvistaqt)  
Author: PyVista Developers  
Author-email: [info@pyvista.org](mailto:info@pyvista.org)  
License: MIT  
Location: c:\users\egeme\anaconda3\envs\py310\lib\site-packages  
Requires: pyvista, QtPy  
Required-by:

Name: ipywidgets  
Version: 7.8.1  
Summary: IPython HTML widgets for Jupyter  
Home-page: [http://ipython.org](http://ipython.org)  
Author: IPython Development Team  
Author-email: [ipython-dev@scipy.org](mailto:ipython-dev@scipy.org)  
License: BSD  
Location: c:\users\egeme\anaconda3\envs\py310\lib\site-packages  
Requires: comm, ipython, ipython-genutils, jupyterlab-widgets, traitlets, widgetsnbextension  
Required-by: ipydatawidgets, ipympl, itkwidgets

 ![image](https://global.discourse-cdn.com/free1/uploads/mne/original/2X/d/d9c0fb363a7a47f1cf0c0a93c5dab0940d3008da.png)  
 ![image](https://global.discourse-cdn.com/free1/uploads/mne/original/2X/4/480924d6ca11434bc4eaec8ca285bbdd61105768.png)

---

<div class="post-metadata">

**Author:** ![mscheltienne](https://yyz2.discourse-cdn.com/free1/user_avatar/mne.discourse.group/mscheltienne/32/827_2.png) [@mscheltienne](https://mne.discourse.group/u/mscheltienne)\
**Post date:** [March 18, 2024, 4:57pm UTC](https://mne.discourse.group/t/pyvistaqt-ipywidgets-installed-but-giving-error-about-installation/8504/2 "2024-03-18T16:57:11Z")

</div>

Can you share the output of `mne.sys_info()`: [mne.sys\_info — MNE 1.7.0.dev151+g14ff9483c documentation](https://mne.tools/dev/generated/mne.sys_info.html)

I suspect you are lacking a Qt binding, one of `PyQt5`, `PyQt6`, `PySide2`, `Pyside6`

Mathieu

---

<div class="post-metadata">

**Author:** ![egemen4552](https://avatars.discourse-cdn.com/v4/letter/e/a9adbd/32.png) [@egemen4552](https://mne.discourse.group/u/egemen4552)\
**Post date:** [March 18, 2024, 5:37pm UTC](https://mne.discourse.group/t/pyvistaqt-ipywidgets-installed-but-giving-error-about-installation/8504/3 "2024-03-18T17:37:06Z")

</div>

These packages were not downloaded in my environment. Yet I used “pip install x” for each of them and same error persists

---

<div class="post-metadata">

**Author:** ![mscheltienne](https://yyz2.discourse-cdn.com/free1/user_avatar/mne.discourse.group/mscheltienne/32/827_2.png) [@mscheltienne](https://mne.discourse.group/u/mscheltienne)\
**Post date:** [March 18, 2024, 5:38pm UTC](https://mne.discourse.group/t/pyvistaqt-ipywidgets-installed-but-giving-error-about-installation/8504/4 "2024-03-18T17:38:30Z")

</div>

Only one should be installed. Could you please share the output of `sys_info`?

Mathieu

---

<div class="post-metadata">

**Author:** ![egemen4552](https://avatars.discourse-cdn.com/v4/letter/e/a9adbd/32.png) [@egemen4552](https://mne.discourse.group/u/egemen4552)\
**Post date:** [March 18, 2024, 7:07pm UTC](https://mne.discourse.group/t/pyvistaqt-ipywidgets-installed-but-giving-error-about-installation/8504/5 "2024-03-18T19:07:48Z")

</div>

> [@mscheltienne](#):
>
> Only one should be installed. Could you please share the output of `sys_info`?

I hope this is what you mean

(py310) C:\Users\egeme\>systeminfo

Host Name: EGEMEN  
OS Name: Microsoft Windows 11 Pro  
OS Version: 10.0.22631 N/A Build 22631  
OS Manufacturer: Microsoft Corporation  
OS Configuration: Standalone Workstation  
OS Build Type: Multiprocessor Free  
Registered Owner: [egemen4552@gmail.com](mailto:egemen4552@gmail.com)  
Registered Organization: N/A  
Product ID: 00330-80000-00000-AA237  
Original Install Date: 24.01.2024, 07:31:41  
System Boot Time: 12.03.2024, 02:43:14  
System Manufacturer: MONSTER  
System Model: TULPAR T5 V23.2  
System Type: x64-based PC  
Processor(s): 1 Processor(s) Installed.  
[01]: Intel64 Family 6 Model 154 Stepping 3 GenuineIntel ~2300 Mhz  
BIOS Version: INSYDE Corp. 1.07.05TFB, 2.08.2023  
Windows Directory: C:\WINDOWS  
System Directory: C:\WINDOWS\system32  
Boot Device: \Device\HarddiskVolume1  
System Locale: tr;Türkçe  
Input Locale: tr;Türkçe  
Time Zone: (UTC+03:00) İstanbul  
Total Physical Memory: 16.104 MB  
Available Physical Memory: 3.102 MB  
Virtual Memory: Max Size: 37.253 MB  
Virtual Memory: Available: 4.629 MB  
Virtual Memory: In Use: 32.624 MB  
Page File Location(s): C:\pagefile.sys  
Domain: WORKGROUP  
Logon Server: \EGEMEN  
Hotfix(s): 5 Hotfix(s) Installed.  
[01]: KB5034467  
[02]: KB5027397  
[03]: KB5033055  
[04]: KB5034848  
[05]: KB5035967  
Network Card(s): 3 NIC(s) Installed.  
[01]: Intel(R) Wi-Fi 6E AX211 160MHz  
Connection Name: Wi-Fi  
DHCP Enabled: Yes  
DHCP Server: 192.168.1.1  
IP address(es)  
[01]: 192.168.1.101  
[02]: fe80::a983:4617:5ff7:2e7c  
[02]: Realtek PCIe GbE Family Controller  
Connection Name: Ethernet  
Status: Media disconnected  
[03]: Bluetooth Device (Personal Area Network)  
Connection Name: Bluetooth Ağ Bağlantısı  
Status: Media disconnected  
Hyper-V Requirements: A hypervisor has been detected. Features required for Hyper-V will not be displayed.

(py310) C:\Users\egeme\>

---

<div class="post-metadata">

**Author:** ![mscheltienne](https://yyz2.discourse-cdn.com/free1/user_avatar/mne.discourse.group/mscheltienne/32/827_2.png) [@mscheltienne](https://mne.discourse.group/u/mscheltienne)\
**Post date:** [March 18, 2024, 9:31pm UTC](https://mne.discourse.group/t/pyvistaqt-ipywidgets-installed-but-giving-error-about-installation/8504/6 "2024-03-18T21:31:09Z")

</div>

No I mean the output of this MNE function: [mne.sys\_info — MNE 1.7.0.dev151+g14ff9483c documentation](https://mne.tools/dev/generated/mne.sys_info.html)

Which details your environment and the versions of all MNE dependencies.

Mathieu

---

<div class="post-metadata">

**Author:** ![egemen4552](https://avatars.discourse-cdn.com/v4/letter/e/a9adbd/32.png) [@egemen4552](https://mne.discourse.group/u/egemen4552)\
**Post date:** [March 18, 2024, 9:48pm UTC](https://mne.discourse.group/t/pyvistaqt-ipywidgets-installed-but-giving-error-about-installation/8504/7 "2024-03-18T21:48:01Z")

</div>

Thanks for the info

\<function mne.utils.config.sys\_info(fid=None, show\_paths=False, \*, dependencies=‘user’, unicode=True, check\_version=True)\>

I assume there is a problem with path, right?

edit = okay, after checking “pip show mne” in conda. It worked then i thought may be i shall delete existing notebook and created a new one. Here is new mne.sys\_info() output

Platform Windows-10-10.0.22631-SP0  
Python 3.10.13 | packaged by Anaconda, Inc. | (main, Sep 11 2023, 13:24:38) [MSC v.1916 64 bit (AMD64)]  
Executable c:\Users\egeme\anaconda3\envs\py310\python.exe  
CPU Intel64 Family 6 Model 154 Stepping 3, GenuineIntel (16 cores)  
Memory 15.7 GB

Core  
├☑ mne 1.6.1 (latest release)  
├☑ numpy 1.22.4 (MKL 2024.0-Product with 10 threads)  
├☑ scipy 1.12.0  
├☑ matplotlib 3.4.3 (backend=module://matplotlib\_inline.backend\_inline)  
├☑ pooch 1.8.1  
└☑ jinja2 3.1.3

Numerical (optional)  
├☑ sklearn 1.4.0  
├☑ nibabel 5.2.0  
├☑ nilearn 0.10.3  
├☑ pandas 2.2.0  
└☐ unavailable numba, dipy, openmeeg, cupy

Visualization (optional)  
├☑ pyvista 0.43.4 (OpenGL 4.5.0 - Build 31.0.101.4575 via Intel(R) UHD Graphics)  
├☑ pyvistaqt 0.11.0  
├☑ qtpy 2.4.1 (PyQt5=5.15.2)  
├☑ ipympl 0.9.3  
├☑ ipywidgets 8.1.2  
├☑ trame\_client 2.16.3  
├☑ trame\_server 2.17.2  
└☐ unavailable vtk, pyqtgraph, mne-qt-browser, trame\_vtk, trame\_vuetify

Ecosystem (optional)  
└☐ unavailable mne-bids, mne-nirs, mne-features, mne-connectivity, mne-icalabel, mne-bids-pipeline.

/// and also I run prior code and got this output = [c:\Users\egeme\anaconda3\envs\py310\lib\site-packages\pyvista\jupyter\notebook.py:34](file:///C:/Users/egeme/anaconda3/envs/py310/lib/site-packages/pyvista/jupyter/notebook.py:34): UserWarning: Failed to use notebook backend: cannot import name ‘vtk’ from ‘trame.widgets’ (c:\Users\egeme\anaconda3\envs\py310\lib\site-packages\trame\widgets\__init_\_.py) Falling back to a static output. warnings.warn(

Code =

 ![image](https://global.discourse-cdn.com/free1/uploads/mne/original/2X/2/2317cf9caa20e4071aca0c112daac6302b45809b.png)

---

<div class="post-metadata">

**Author:** ![mscheltienne](https://yyz2.discourse-cdn.com/free1/user_avatar/mne.discourse.group/mscheltienne/32/827_2.png) [@mscheltienne](https://mne.discourse.group/u/mscheltienne)\
**Post date:** [March 19, 2024, 7:59am UTC](https://mne.discourse.group/t/pyvistaqt-ipywidgets-installed-but-giving-error-about-installation/8504/8 "2024-03-19T07:59:06Z")

</div>

> [@egemen4552](#):
>
> Failed to use notebook backend: cannot import name ‘vtk’ from ‘trame.widgets’

Let’s start with that, as the `sys_info` reports under visualization dependencies:

```python
unavailable vtk, pyqtgraph, mne-qt-browser, trame_vtk, trame_vuetify

```

Please install at least `vtk` and `trame_vtk`.

In case you are not aware, MNE provides an installer which install an entire conda environment will all its dependencies and more: [MNE-Python installers — MNE 1.6.1 documentation](https://mne.tools/stable/install/installers.html#installers)  
The created environment includes IDEs like Spyder and Jupyter for development. This installer goal is to simplifying the installation process for users and at avoiding this kind of issues with incomplete environment during manual installs.

Mathieu

---

<div class="post-metadata">

**Author:** ![larsoner](https://yyz2.discourse-cdn.com/free1/user_avatar/mne.discourse.group/larsoner/32/3_2.png) [@larsoner](https://mne.discourse.group/u/larsoner)\
**Post date:** [March 19, 2024, 1:23pm UTC](https://mne.discourse.group/t/pyvistaqt-ipywidgets-installed-but-giving-error-about-installation/8504/9 "2024-03-19T13:23:03Z")

</div>

Also it appears to be trying to use the notebook backend rather than the Qt one. You can use this to set which to use:

[https://mne.tools/stable/generated/mne.viz.set\_3d\_backend.html](https://mne.tools/stable/generated/mne.viz.set_3d_backend.html)

Depending on your graphics capabilities you might also need something like:

```python
mne.viz.set_3d_options(
    antialias=False, depth_peeling=False, smooth_shading=False, multi_samples=1,
)

```
