-
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?
Changes from all commits
c4c073f
ed9be87
82298f3
647bfad
a372ab0
e1746b4
4f3fcce
2b95d41
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -255,11 +255,12 @@ def _build_config(self, root_dir, env_filename, kwargs): # pragma: no cover | |
| elif key == "port" and str(value).strip() == "auto": | ||
| config["port"] = "auto" | ||
| else: | ||
| config[key] = value if config.get(key) is None else type(config.get(key))(value) # type: ignore[reportCallIssue] | ||
| config[key] = value if config.get(key) is None else type(config.get(key))( | ||
| value) # type: ignore[reportCallIssue] | ||
| except Exception as e: | ||
| _warn( | ||
| 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}", | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. passing the exception as an argument is preferred |
||
| ) | ||
| # Load config from env file | ||
| if os.path.isfile(env_file_abs_path): | ||
|
|
@@ -273,11 +274,12 @@ def _build_config(self, root_dir, env_filename, kwargs): # pragma: no cover | |
| if isinstance(config[key], bool): | ||
| config[key] = _is_true(value) | ||
| else: | ||
| config[key] = value if config[key] is None else type(config[key])(value) # type: ignore[reportCallIssue] | ||
| config[key] = value if config[key] is None else type(config[key])( | ||
| value) # type: ignore[reportCallIssue] | ||
| except Exception as e: | ||
| _warn( | ||
| f"Invalid env value in Gui.run(): {key} - {value}. Unable to parse value to the correct type", # noqa: E501 | ||
| e, | ||
| f"Invalid env value in Gui.run(): {key} - {value}. " | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. idem
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. resolved
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. idem |
||
| f"Unable to parse value to the correct type: {e}", | ||
| ) | ||
|
|
||
| # Taipy-config | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.