Skip to content

Commit 30330fc

Browse files
committed
Add note about how to run the example using the flask CLI
1 parent b54535d commit 30330fc

File tree

1 file changed

+19
-1
lines changed

1 file changed

+19
-1
lines changed

examples/user_interfaces/web_application_server_sgskip.py

+19-1
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,25 @@ def hello():
4444
# instantiate an Agg canvas;
4545
# see e.g. :doc:`/gallery/user_interfaces/canvasagg`.
4646
#
47-
# .. _howto-click-maps:
47+
# Note: This script should be run using the
48+
# `flask command-line tool <https://flask.palletsprojects.com/en/master/cli/>`_
49+
# since it is a Flask application.
50+
# Assuming that the working directory contains this script:
51+
#
52+
# Unix-like systems
53+
#
54+
# .. code-block:: console
55+
#
56+
# FLASK_APP=web_application_server_sgskip flask run
57+
#
58+
# Windows
59+
#
60+
# .. code-block:: console
61+
#
62+
# set FLASK_APP=web_application_server_sgskip
63+
# flask run
64+
#
65+
# .. _howto-click-maps:
4866
#
4967
# Clickable images for HTML
5068
# -------------------------

0 commit comments

Comments
 (0)