gdsCAD viewer

I just started to use gdsCAD and followed the examples proposed in the user’s guide page. I created an example gds file and I displayed the layout object with the “layout.show()” command: the viewer opened, blocking the python console, which remained blocked also after quitting the viewer.

The trick to solve this issue is simple: the “show”method uses the  matplotlib.pyplot “show()” method without input parameters.

import matplotlib.pyplot as plt
import …


def _show(self):



plt.show()

It’s enough to change the source code, adding the parameter block=False in the line where the matplotlib.pyplot show() method is called:

plt.show(block=False)

and the viewer does not block the python console any more.