Skip to content
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

Split the section about embed=true parameter of embedded Streamlit apps #709

Open
wants to merge 7 commits into
base: main
Choose a base branch
from

Conversation

whitphx
Copy link
Member

@whitphx whitphx commented Mar 14, 2023

Successor to #688

The embed=true query parameter has a noteworthy side effect, so its section should be separated.


TODO: While the updated content is correct for the upstream Streamlit, HF Spaces' patched Streamlit always disables scrolling even when being served without embed=true, so we have to investigate it before publishing this change.

@HuggingFaceDocBuilderDev

The docs for this PR live here. All of your documentation changes will be reflected on that endpoint.

@whitphx whitphx marked this pull request as draft March 14, 2023 15:44
@whitphx whitphx force-pushed the streamlit-embed-param branch from f88d84e to ded2dd0 Compare March 14, 2023 15:51
@whitphx whitphx force-pushed the streamlit-embed-param branch from ded2dd0 to 0febb6d Compare April 10, 2023 09:23
@osanseviero
Copy link
Contributor

Hi @whitphx! Should we close this PR?

@whitphx whitphx marked this pull request as ready for review December 6, 2023 18:09
@whitphx
Copy link
Member Author

whitphx commented Dec 6, 2023

@osanseviero Sorry it has been stale for a long time. I fixed it and marked as ready.

```

<iframe
src="https://NimaBoscarino-hotdog-streamlit.hf.space"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This Space is not working right now, so the embed won't work either.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I created a new Space with the same code in my namespace.

```
<iframe
src="https://NimaBoscarino-hotdog-streamlit.hf.space"
title="My awesome Streamlit Space"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we also include the height, as it is mentioned in your comment below? What about all the allow settings, are they required?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The height used below is an ad-hoc optimization, so I think leaving this sample code as-is without height would be ok as an example.

docs/hub/spaces-sdks-streamlit.md Outdated Show resolved Hide resolved
docs/hub/spaces-sdks-streamlit.md Outdated Show resolved Hide resolved
@julien-c
Copy link
Member

is this still in process @whitphx? or can it be closed?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants