File size: 366 Bytes
978b744
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
import streamlit as st
import nbformat
from nbconvert import HTMLExporter

# Read the Jupyter notebook
with open("banglishtobangla.ipynb", "r") as f:
    nb = nbformat.read(f, as_version=4)

# Convert notebook to HTML
html_exporter = HTMLExporter()
body, resources = html_exporter.from_notebook_node(nb)

# Display notebook
st.markdown(body, unsafe_allow_html=True)