Skip to content

How to deploy interactive HTML (plotly.js) #6904

@a00101

Description

@a00101

Checklist

  • I have searched the existing issues for similar issues.
  • I added a very descriptive title to this issue.
  • I have provided sufficient information below to help reproduce this issue.

Summary

Not showing interactive html using components.v1

Reproducible Code Example

import streamlit.components.v1 as components
path_to_html = "test.html" 
with open(path_to_html,'r') as f: 
    html_data = f.read()

			components.iframe(path_to_html, height=600)			components.html(path_to_html, height=600)
						components.iframe(html_data, height=600)
components.html(html_data, height=600)

Any components, only showing white blank page

Steps To Reproduce

See upper code

Expected Behavior

No response

Current Behavior

No response

Is this a regression?

  • Yes, this used to work in a previous version.

Debug info

  • Streamlit version:
  • Python version:
  • Operating System:
  • Browser:
  • Virtual environment:

Additional Information

No response

Are you willing to submit a PR?

  • Yes, I am willing to submit a PR!

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions