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
The current implementation of exec_python_code is a multi-processing version, which should be in if __name__ == "__main__". We can implement it in the thread and mark it as TODO now.
Update about global var:
# Create a new global namespace dictionary
global_namespace = {}
# Copy the contents of the current global namespace into the new namespace dictionary
global_namespace.update(globals())
# Execute the provided code within the newly defined global context
exec(code, global_namespace)
The text was updated successfully, but these errors were encountered:
The current implementation of
exec_python_code
is a multi-processing version, which should be inif __name__ == "__main__"
. We can implement it in the thread and mark it as TODO now.Update about global var:
The text was updated successfully, but these errors were encountered: