Fix for ase.visualize.mlab Visualization Issues over SSH with X11 Forwarding
Here: Your concise description of the content of this merge request.
Checklist
- [v] I am familiar with ASE's contribution guidelines.
- [v] Doc strings in code changed in this MR are up to date.
- [v] Unit tests have been added for new or changed code.
- [v] Issue is resolved via "closes #1427" if applicable.
Description
Issue
ase.visualize.mlab
fails when used from Windows 10/11 to Ubuntu 22.04 over an SSH connection with X11 forwarding. The problem is traced to mayavi.mlab
not handling GUI window information correctly in this setup.
Solution
- Adjusted
mayavi.mlab
settings for compatibility with SSH-forwarded GUI sessions. - Added a check to detect SSH connection to dynamically configure settings.
Unit test
Confirmed functionality in direct Ubuntu 22.04 execution and over SSH with X11 forwarding from Windows to Ubuntu.
Please review and consider merging these changes for enhanced remote visualization support.
Edited by Yohan LEE