Here is what to do if you get this "Click to show javascript error." error in view_ngl or nglviewer in pfcc-extras.
↓ Example of an error displayed after clicking
First, try the following methods.
- Restart your browser and update to the latest version
- Restart Matlantis
Next, if the issue persists, please try this (Updated: 11/11/2025)
If the above does not resolve the problem, unfortunately the only option is to reset the Python environment.
Restart Matlantis
- Dashboard screen
Click ▼ to the right of "Stop Application" to execute "Restart Application".
("Restart Application" performs the same process as stopping Matlantis in "Stop Application" and starting Matlantis in "Start Application", with one click.)
- Notebook screen
Click "Restart" from the menu with the human-shaped icon in the top right-hand corner.
To Reset the Python environment
Before Resetting
Resetting the Python environment will erase all libraries installed with pip
install .
Therefore, please consider the following procedure.
- Check and save the libraries you had installed and their versions in
pip list. - Create a
pip freeze > requirements.txtfile and prepare it for batch installation.
Alternatively, use this as an opportunity to clean out the libraries you need. Libraries that you do not use can cause disk usage to be overloaded. In that case, install the libraries when you need them (if you get an error saying there are no libraries) with pip install.
Also, please note that libraries such as pfcc-extras that need to be installed manually using setup.py instead of pip install will need to be installed again. (For instructions on how to install pfcc-extras, please click here.)
Resetting Python environment
- "Stop Matlantiis" from the Dashboard screen.
- Open the "Advanced" menu.
- Select "Open Dialog to Clear Notebook Environment".
- Tick "Python environment" and run "Clear Notebook then Start Notebook Application" to reset the Python environment.