When running these notebooks as part of a Synapse pipeline, the results and the notebook's state are captured and passed back to the pipeline.
The error message you're seeing indicates that the output/state of your notebook exceeds the 8MB size limit. This can happen if:
- The notebook contains a large amount of code, markdown, and other contents.
- The output generated by your notebook (e.g., dataframes, graphs, or other outputs) is substantial.
You need to delve into the run()
method in your App
class. Check what this method is doing. Does it fetch a large dataset? Does it produce a substantial amount of logs or other outputs?
If the method does produce outputs, try redirecting them to a file or another storage mechanism instead of returning them. Even if these outputs aren't explicitly printed to the notebook, they could still be captured by Synapse and contribute to the size issue.
Test without **await app.run()
**if the method does produce outputs, try redirecting them to a file or another storage mechanism instead of returning them. Even if these outputs aren't explicitly printed to the notebook, they could still be captured by Synapse and contribute to the size issue.