stc.plot -> cannot import 'rcparams' from 'pyvista'

Current:
Python: 3.10.12
MNE version: 0.23.4
pyvista version: 0.41.1 {pyvistaqt = 0.11.0, OpenGL 4.3 (Core Profile) Mesa 22.2.5-0ubungu0.1~22.04.3 via NV126}
vtk: 9.2.6
operating system: Ubuntu 22.04.2

Hello everyone,
I am having an issue with the visualization of source time courses of source localisation.
Last year my source localisation Pipeline used to work without any problems with the package configuration:

Python: 3.9
MNE version: 0.23.4
pyvista version: 0.32.1 {pyvistaqt = 0.9.0, OpenGL 4.3 (Core Profile) Mesa 21.2.6 via NV126}
vtk: 9.0.2
operating system: Ubuntu 22.04.2

Now, whenever I use the command:

stc.plot(subjects_dir=subjects_dir, surface='white', hemi='split')

This error appears:

Using control points [2.08923583 2.31296232 4.17430793]

---------------------------------------------------------------------------
ImportError                               Traceback (most recent call last)
/tmp/ipykernel_8351/3962133029.py in <module>
----> 1 brain1= stc.plot(subjects_dir=subjects_dir, surface='white', hemi='split' )

~/.local/lib/python3.10/site-packages/mne/source_estimate.py in plot(self, subject, surface, hemi, colormap, time_label, smoothing_steps, transparent, alpha, time_viewer, subjects_dir, figure, views, colorbar, clim, cortex, size, background, foreground, initial_time, time_unit, backend, spacing, title, show_traces, src, volume_options, view_layout, add_data_kwargs, brain_kwargs, verbose)
    649              src=None, volume_options=1., view_layout='vertical',
    650              add_data_kwargs=None, brain_kwargs=None, verbose=None):
--> 651         brain = plot_source_estimates(
    652             self, subject, surface=surface, hemi=hemi, colormap=colormap,
    653             time_label=time_label, smoothing_steps=smoothing_steps,

<decorator-gen-153> in plot_source_estimates(stc, subject, surface, hemi, colormap, time_label, smoothing_steps, transparent, alpha, time_viewer, subjects_dir, figure, views, colorbar, clim, cortex, size, background, foreground, initial_time, time_unit, backend, spacing, title, show_traces, src, volume_options, view_layout, add_data_kwargs, brain_kwargs, verbose)

~/.local/lib/python3.10/site-packages/mne/viz/_3d.py in plot_source_estimates(stc, subject, surface, hemi, colormap, time_label, smoothing_steps, transparent, alpha, time_viewer, subjects_dir, figure, views, colorbar, clim, cortex, size, background, foreground, initial_time, time_unit, backend, spacing, title, show_traces, src, volume_options, view_layout, add_data_kwargs, brain_kwargs, verbose)
   1779     else:
   1780         with use_3d_backend(backend):
-> 1781             return _plot_stc(
   1782                 stc, overlay_alpha=alpha, brain_alpha=alpha,
   1783                 vector_alpha=alpha, cortex=cortex, foreground=foreground,

~/.local/lib/python3.10/site-packages/mne/viz/_3d.py in _plot_stc(stc, subject, surface, hemi, colormap, time_label, smoothing_steps, subjects_dir, views, clim, figure, initial_time, time_unit, background, time_viewer, colorbar, transparent, brain_alpha, overlay_alpha, vector_alpha, cortex, foreground, size, scale_factor, show_traces, src, volume_options, view_layout, add_data_kwargs, brain_kwargs)
   1861                              'mayavi backend')
   1862     with warnings.catch_warnings(record=True):  # traits warnings
-> 1863         brain = Brain(**kwargs)
   1864     del kwargs
   1865

~/.local/lib/python3.10/site-packages/mne/viz/_brain/_brain.py in __init__(self, subject_id, hemi, surf, title, cortex, alpha, size, background, foreground, figure, subjects_dir, views, offset, show_toolbar, offscreen, interaction, units, view_layout, silhouette, theme, show)
    477         logger.debug(f'Hemi offset: {offset}')
    478
--> 479         self._renderer = _get_renderer(name=self._title, size=size,
    480                                        bgcolor=background,
    481                                        shape=shape,

~/.local/lib/python3.10/site-packages/mne/viz/backends/renderer.py in _get_renderer(*args, **kwargs)
     39 def _get_renderer(*args, **kwargs):
     40     set_3d_backend(_get_3d_backend(), verbose=False)
---> 41     return backend._Renderer(*args, **kwargs)
     42
     43

~/.local/lib/python3.10/site-packages/mne/viz/backends/_qt.py in __init__(self, *args, **kwargs)
    509                 _QtStatusBar, _QtWindow, _QtPlayback):
    510     def __init__(self, *args, **kwargs):
--> 511         super().__init__(*args, **kwargs)
    512         self._window_initialize()
    513

~/.local/lib/python3.10/site-packages/mne/viz/backends/_pyvista.py in __init__(self, fig, size, bgcolor, name, show, shape, notebook, smooth_shading)
    177                 # smooth_shading=True fails on MacOS CIs
    178                 self.figure.smooth_shading = False
--> 179             with _disabled_depth_peeling():
    180                 self.plotter = self.figure.build()
    181             self._hide_axes()

/usr/lib/python3.10/contextlib.py in __enter__(self)
    133         del self.args, self.kwds, self.func
    134         try:
--> 135             return next(self.gen)
    136         except StopIteration:
    137             raise RuntimeError("generator didn't yield") from None

~/.local/lib/python3.10/site-packages/mne/viz/backends/_pyvista.py in _disabled_depth_peeling()
   1111 @contextmanager
   1112 def _disabled_depth_peeling():
-> 1113     from pyvista import rcParams
   1114     depth_peeling_enabled = rcParams["depth_peeling"]["enabled"]
   1115     rcParams["depth_peeling"]["enabled"] = False

ImportError: cannot import name 'rcParams' from 'pyvista' (/home/neuro/.local/lib/python3.10/site-packages/pyvista/__init__.py)

I’ve already tried to reinstall the old packages that I used last year, but some of them are not available anymore.
Does anyone have an advice how I could get this to work again?

Thankyou very much!

Bianca