-
Notifications
You must be signed in to change notification settings - Fork 3.2k
Allow custom HTML components to be defined in jupyter notebooks #12531
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
Conversation
🪼 branch checks and previews
Install Gradio from this PR pip install https://gradio-pypi-previews.s3.amazonaws.com/cfca9055e91941f2d1799488a33e8d6323727e4e/gradio-6.0.2-py3-none-any.whlInstall Gradio Python Client from this PR pip install "gradio-client @ git+https://github.com/gradio-app/gradio@cfca9055e91941f2d1799488a33e8d6323727e4e#subdirectory=client/python"Install Gradio JS Client from this PR npm install https://gradio-npm-previews.s3.amazonaws.com/cfca9055e91941f2d1799488a33e8d6323727e4e/gradio-client-2.0.0.tgz |
🦄 change detectedThis Pull Request includes changes to the following packages.
✅ Changeset approved by @abidlabs
|
| and isinstance(expr.test.ops[0], ast.Eq) | ||
| and isinstance(expr.test.comparators[0], ast.Constant) | ||
| and expr.test.comparators[0].s == "__main__" | ||
| and expr.test.comparators[0].value == "__main__" |
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.
Unrelated fix for reload mode in Python 3.14 (.s has been removed)
gradio/blocks.py
Outdated
| module_path = sys.modules[module_name].__file__ | ||
| try: | ||
| module_path = inspect.getfile(cls) | ||
| except (TypeError, OSError): |
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.
The docs say this only fails with a TypeError: https://docs.python.org/3.10/library/inspect.html
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.
Sweet will simplify
freddyaboulton
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.
Thanks @abidlabs !
|
Thanks for the review @freddyaboulton! Fixed, will merge in |

Fixes: #12530 and a stray
console.trace()