In order to use external modules on Saagie, it is possible to import the required module within your package.
For example to use the polyglot module:
- The following file will be used as an entry point script:
# Module import
import pygogo as gogo
# Use of module
if __name__ == '__main__':
hdlr = gogo.handlers.stdout_hdlr()
compute_mean([1, 2, 7, 9, 5])
- Create a zip file with the following structure:
Please note that whenever there is more than one python file into the zip archive, there needs to be a __main__.py file which will be used as an entry point.
- You can then create a job and use the following command to launch the script:
Python execution command