Client side python requires implementation so that it can run in the browser. If it’s not been implemented, it might be because no one has needed/requested it before…
If performance is not a problem you can pprint it in the server.
The interpreter in the server is a real Python interpreter and will behave as expected. Create the callable function in the server, call_s it from the client and show the result.