Running taipy in notebooks is slow#2704
Conversation
Avaiga#2489-running-taipy-in-notebooks-is-slow
add type checker from None to Int
|
Hi, PR is ready. 3 jobs are canceled. |
|
Hi |
FredLL-Avaiga
left a comment
There was a problem hiding this comment.
remove non necessary noqa comments
taipy/gui/config.py
Outdated
| _warn( | ||
| f"Invalid keyword arguments value in Gui.run(): {key} - {value}. Unable to parse value to the correct type", # noqa: E501 | ||
| f"Invalid keyword arguments value in Gui.run(): {key} - {value}. " | ||
| f"Unable to parse value to the correct type", |
There was a problem hiding this comment.
no need for f string if it is cut ?
taipy/gui/config.py
Outdated
| f"Invalid keyword arguments value in Gui.run(): {key} - {value}. Unable to parse value to the correct type", # noqa: E501 | ||
| f"Invalid keyword arguments value in Gui.run(): {key} - {value}. " | ||
| f"Unable to parse value to the correct type", | ||
| # noqa: E501 |
There was a problem hiding this comment.
no need to ignore E501 when the string is cut ?
| except Exception as e: | ||
| _warn( | ||
| f"Invalid env value in Gui.run(): {key} - {value}. Unable to parse value to the correct type", # noqa: E501 | ||
| f"Invalid env value in Gui.run(): {key} - {value}. " |
taipy/gui/servers/flask/server.py
Outdated
| "Something is wrong with the taipy-gui front-end installation. Check that the js bundle has been properly built (is Node.js installed?)." # noqa: E501 | ||
| "Something is wrong with the taipy-gui front-end installation. " | ||
| "Check that the js bundle has been properly built (is Node.js installed?)." | ||
| # noqa: E501 |
There was a problem hiding this comment.
is "ignore E501" needed when the string is cut ?
taipy/gui/utils/proxy.py
Outdated
| message="You do not have a working installation of the service_identity module: 'No module named 'service_identity''.*", # noqa: E501 | ||
| message="You don't have a working installation of the service_identity module: " | ||
| "'No module named 'service_identity''.*", | ||
| # noqa: E501 |
|
Can you please provide more details on how running the proxy as a thread will help with performance? |
Hi But before i got it. So, PR in progress |
| f"Invalid keyword arguments value in Gui.run(): {key} - {value}. Unable to parse value to the correct type", # noqa: E501 | ||
| e, | ||
| f"Invalid keyword arguments value in Gui.run(): {key} - {value}. " | ||
| f"Unable to parse value to the correct type: {e}", |
There was a problem hiding this comment.
passing the exception as an argument is preferred
| except Exception as e: | ||
| _warn( | ||
| f"Invalid env value in Gui.run(): {key} - {value}. Unable to parse value to the correct type", # noqa: E501 | ||
| f"Invalid env value in Gui.run(): {key} - {value}. " |
What type of PR is this? (Check all that apply)
Description
Resolve freezing when we are using jupyter
Related Tickets & Documents
How to reproduce the issue
Backporting
This change should be backported to:
Checklist
We encourage keeping the code coverage percentage at 80% or above.
If not, explain why:
If not, explain why:
If not, explain why:
If not, explain why: