RakipInitiative / ModelRepository

Joint project of EFSA, Federal Institute For Risk Assessment, DTU and ANSES to create a online model repository.
GNU General Public License v3.0
2 stars 0 forks source link

Feature: ignore commands that use graphical engine e.g. plt.show() #557

Open schuelet opened 1 year ago

schuelet commented 1 year ago

FSK-Lab stores plots directly to image, using a non-GUI backend (agg). When the visualization script contains a function call that uses such a GUI, like matplotlib.show(), the Runner node throws an error.

We should ignore such function calls if possible when executing the code. Easiest way to do so is to scan the code for these calls and remove (or out-comment) them .