我已经使用dash app for web在spyder中编写了一个简单程序。当我运行程序时,我面临以下问题。请帮助我解决此类错误。
首先,当我运行代码时,发生了以下错误。
Unsupported operation :not writeable
然后按照Github中的讨论更改echo和secho函数的默认名称。之后,我面临以下问题
import dash
import dash_html_components as html
app = dash.Dash()
app.layout = html.Div(
html.H1(children='Hello Dash')
)
if __name__ == '__main__':
app.run_server(debug=True)
遇到以下错误
Running on http://127.0.0.1:8050/
Debugger PIN: 565-313-212
* Serving Flask app "__main__" (lazy loading)
* Environment: production
WARNING: Do not use the development server in a production environment.
Use a production WSGI server instead.
* Debug mode: on
An exception has occurred, use %tb to see the full traceback.
SystemExit: 1
C:\Users\Hussnain\Anaconda3\lib\site-packages\IPython\core\interactiveshell.py:2971: UserWarning:
To exit: use 'exit', 'quit', or Ctrl-D.