I can't locally launch the streamlit app through jupyter notebook, it showed runtimeerror

Hi,

I am new to using the Streamlit app. I used jupyternotebook to locally run the first app using Streamlit. Below is my code:

import streamlit as st

#writing simple text 
st.text("Hello")

Then, I run the command below in anaconda command prompt.

streamlit run C:\Users\User\anaconda3\envs\webapp\lib\site-packages\ipykernel_launcher.py

Then, I got the popup window with error message as showed below.

File "C:\Users\User\anaconda3\envs\webapp\lib\site-packages\streamlit\scriptrunner\script_runner.py", line 554, in _run_script
    exec(code, module.__dict__)
File "C:\Users\User\anaconda3\envs\webapp\lib\site-packages\ipykernel_launcher.py", line 16, in <module>
    app.launch_new_instance()
File "C:\Users\User\anaconda3\envs\webapp\lib\site-packages\traitlets\config\application.py", line 845, in launch_instance
    app.initialize(argv)
File "C:\Users\User\anaconda3\envs\webapp\lib\site-packages\traitlets\config\application.py", line 88, in inner
    return method(app, *args, **kwargs)
File "C:\Users\User\anaconda3\envs\webapp\lib\site-packages\ipykernel\kernelapp.py", line 647, in initialize
    self.init_kernel()
File "C:\Users\User\anaconda3\envs\webapp\lib\site-packages\ipykernel\kernelapp.py", line 493, in init_kernel
    shell_stream = ZMQStream(self.shell_socket)
File "C:\Users\User\anaconda3\envs\webapp\lib\site-packages\zmq\eventloop\zmqstream.py", line 101, in __init__
    self.io_loop = io_loop or IOLoop.current()
File "C:\Users\User\anaconda3\envs\webapp\lib\site-packages\zmq\eventloop\ioloop.py", line 130, in current
    loop = ioloop.IOLoop.current(*args, **kwargs)
File "C:\Users\User\anaconda3\envs\webapp\lib\site-packages\tornado\ioloop.py", line 263, in current
    loop = asyncio.get_event_loop()
File "C:\Users\User\anaconda3\envs\webapp\lib\asyncio\events.py", line 656, in get_event_loop
    raise RuntimeError('There is no current event loop in thread %r.'

Below is how the web browser shows.

How do I resolve this issue? Can I actually run the Streamlit app through the jupyternotebook?

Thanks!