Thank you for posting query in Microsoft Q&A Platform.
There is no difference Synapse notebook with python allows you to write code in python only.
Make sure to run pip install <packageName>
command if your code as any package references.
If there are any specific ports to open for sending email then you have to consider that too.
Hope this helps. Please let us know if any queries.
----------
Please consider hitting Accept Answer
button. Accepted answers help community as well.