Alexandre Verri Posted December 18, 2019 Share Posted December 18, 2019 I would like to know how to profile an IronPython script. Trying the following code does not work when running on Spotfire: import profile def count(): res = [] for n in range(1000000): res.append(n) return res profile.run('count()') It throws an error: ImportError: No module named __main__ Link to comment Share on other sites More sharing options...
Rayees Wani Posted December 19, 2019 Share Posted December 19, 2019 Check: https://community.spotfire.com/questions/how-can-i-send-excel-attachment-my-outlook-using-iron-python-script-spotfire-78 Link to comment Share on other sites More sharing options...
Alexandre Verri Posted December 19, 2019 Author Share Posted December 19, 2019 Hi, thanks, but this does not help. I understand that the link you provided contains another link for a tutorial about how to add an external IronPython module, but this is not the related to the issue we are facing. We are trying to use the module profile, which is part of Python standard libraries and it's not working inside Spotfire. Link to comment Share on other sites More sharing options...
Tyger Guzman 2 Posted December 30, 2019 Share Posted December 30, 2019 I'm not finding Profile as part of the default modules in Spotfire's IronPyhon. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now