-
Notifications
You must be signed in to change notification settings - Fork 2k
Running taipy in notebooks is slow #2704
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. Weβll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: develop
Are you sure you want to change the base?
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
no need for f string if it is cut ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
resolved
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
no need to ignore E501 when the string is cut ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
resolved
| 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}. " |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
idem
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
idem
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is "ignore E501" needed when the string is cut ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
resolved
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 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
idem cut string E501 ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
resolved
|
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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}. " |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
idem
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: