Custom Templates
Template Class
Section titled “Template Class”from synapse import Template
template = Template( name="data-science", runtime="python3", packages=["pandas", "numpy", "scikit-learn", "matplotlib"], description="Data science environment with ML libraries",)
# Register with the gatewaytemplate.register()Using Custom Templates
Section titled “Using Custom Templates”cell = Cell(template="data-science")result = cell.run("import pandas as pd; print(pd.__version__)")