shwetashweta05
commited on
Commit
•
cc72e5d
1
Parent(s):
141b341
Delete pages/How to convert Image to tabular data.py
Browse files
pages/How to convert Image to tabular data.py
DELETED
@@ -1,15 +0,0 @@
|
|
1 |
-
import streamlit as st
|
2 |
-
from nbconvert import HTMLExporter
|
3 |
-
import nbformat
|
4 |
-
|
5 |
-
# Path to the notebook
|
6 |
-
notebook_path = "image_show(b,g,r)_in_window.ipynb"
|
7 |
-
|
8 |
-
# Load and convert notebook to HTML
|
9 |
-
with open(notebook_path, "r", encoding="utf-8") as f:
|
10 |
-
notebook = nbformat.read(f, as_version=4)
|
11 |
-
html_exporter = HTMLExporter()
|
12 |
-
(html_body, resources) = html_exporter.from_notebook_node(notebook)
|
13 |
-
|
14 |
-
# Display notebook as HTML in Streamlit
|
15 |
-
st.components.v1.html(html_body, height=800, scrolling=True)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|