Probably it's not the way you want to use it, because streamlit executes a xxx.py script file to run the web app. The app will be residing in your web browser, which is a separate entity from Jupyter Notebook.
There is a discussion about this if you're interested in taking a look: https://discuss.streamlit.io/t/running-streamlit-in-a-jupyter-cell/584