You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I yet to pin down the issue here, but there seem to some problems with %mprun when trying to run it for a function with multiple parameters.
In [26]: %mprun -f compute_XD_results(500, 5, 500)
UsageError: Could not find function 'compute_XD_results(500,'.
SyntaxError: unexpected EOF while parsing (<string>, line 1)
While it seems to do something, it doesn't return any results. %memit works as expected.
In [27]: %mprun -f compute_XD_results(500)
The text was updated successfully, but these errors were encountered:
I believe that you need to do the following: %mprun -f compute_XD_results compute_XD_results(500, 5, 500)
the -f flag tells mprun which function needs profiling (just the function name) separate from the actual invocation of the function (which requires arguments)
I yet to pin down the issue here, but there seem to some problems with
%mprun
when trying to run it for a function with multiple parameters.While it seems to do something, it doesn't return any results.
%memit
works as expected.The text was updated successfully, but these errors were encountered: