We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
from pyforest import LazyImport pd = LazyImport("import pandas as pd") def prueba(df: pd.DataFrame) -> None: pass
I think the problem is in this code block of _importable.py If statements arrives empty, it will print the "\n".
A possible solution would be not to call the display function if there are no elements in statements.
if len(statements) > 0: display( Javascript( """ if (window._pyforest_update_imports_cell) {{ window._pyforest_update_imports_cell({!r}); }} """.format( "\n".join(statements) ) ) )
The text was updated successfully, but these errors were encountered:
I'm facing similar problems. pyforest generates an enormous amount (~ million lines) of invisible repeated junk messages:
Sorry, something went wrong.
No branches or pull requests
Environment
Description of Issue
Lazy loading of a library should not produce blank lines in the output.
A line break occurs when executing an instruction that must load the referenced library.
Reproduction Steps
What steps have you taken to resolve this already?
I think the problem is in this code block of _importable.py
If statements arrives empty, it will print the "\n".
Anything else?
A possible solution would be not to call the display function if there are no elements in statements.
The text was updated successfully, but these errors were encountered: