Hi @SurajTripathi-0210 ,
There is no direct way of doing this from Synapse notebook. You can consider port code into VS code and create a wheel in it or save file (py) to create a wheel during deployment.
You can check below video there it explains how to create a wheel file.
Package your Python code as Wheel File
Hope this helps. Please let us know how it goes.
---------
Please consider hitting Accept Answer
button. Accepted answers help community as well.