@@ -802,6 +802,7 @@ def _config(self):
802802 "requests_pathname_prefix" : self .config .requests_pathname_prefix ,
803803 "ui" : self ._dev_tools .ui ,
804804 "props_check" : self ._dev_tools .props_check ,
805+ "disable_version_check" : self ._dev_tools .disable_version_check ,
805806 "show_undo_redo" : self .config .show_undo_redo ,
806807 "suppress_callback_exceptions" : self .config .suppress_callback_exceptions ,
807808 "update_title" : self .config .update_title ,
@@ -1754,6 +1755,12 @@ def _setup_dev_tools(self, **kwargs):
17541755 get_combined_config (attr , kwargs .get (attr , None ), default = default )
17551756 )
17561757
1758+ dev_tools ["disable_version_check" ] = get_combined_config (
1759+ "disable_version_check" ,
1760+ kwargs .get ("disable_version_check" , None ),
1761+ default = False ,
1762+ )
1763+
17571764 return dev_tools
17581765
17591766 def enable_dev_tools (
@@ -1767,6 +1774,7 @@ def enable_dev_tools(
17671774 dev_tools_hot_reload_watch_interval = None ,
17681775 dev_tools_hot_reload_max_retry = None ,
17691776 dev_tools_silence_routes_logging = None ,
1777+ dev_tools_disable_version_check = None ,
17701778 dev_tools_prune_errors = None ,
17711779 ):
17721780 """Activate the dev tools, called by `run`. If your application
@@ -1787,6 +1795,7 @@ def enable_dev_tools(
17871795 - DASH_HOT_RELOAD_WATCH_INTERVAL
17881796 - DASH_HOT_RELOAD_MAX_RETRY
17891797 - DASH_SILENCE_ROUTES_LOGGING
1798+ - DASH_DISABLE_VERSION_CHECK
17901799 - DASH_PRUNE_ERRORS
17911800
17921801 :param debug: Enable/disable all the dev tools unless overridden by the
@@ -1832,6 +1841,11 @@ def enable_dev_tools(
18321841 env: ``DASH_SILENCE_ROUTES_LOGGING``
18331842 :type dev_tools_silence_routes_logging: bool
18341843
1844+ :param dev_tools_disable_version_check: Silence the upgrade
1845+ notification to prevent making requests to the Dash server.
1846+ env: ``DASH_DISABLE_VERSION_CHECK``
1847+ :type dev_tools_disable_version_check: bool
1848+
18351849 :param dev_tools_prune_errors: Reduce tracebacks to just user code,
18361850 stripping out Flask and Dash pieces. Only available with debugging.
18371851 `True` by default, set to `False` to see the complete traceback.
@@ -1853,6 +1867,7 @@ def enable_dev_tools(
18531867 hot_reload_watch_interval = dev_tools_hot_reload_watch_interval ,
18541868 hot_reload_max_retry = dev_tools_hot_reload_max_retry ,
18551869 silence_routes_logging = dev_tools_silence_routes_logging ,
1870+ disable_version_check = dev_tools_disable_version_check ,
18561871 prune_errors = dev_tools_prune_errors ,
18571872 )
18581873
@@ -2052,6 +2067,7 @@ def run(
20522067 dev_tools_hot_reload_watch_interval : Optional [int ] = None ,
20532068 dev_tools_hot_reload_max_retry : Optional [int ] = None ,
20542069 dev_tools_silence_routes_logging : Optional [bool ] = None ,
2070+ dev_tools_disable_version_check : Optional [bool ] = None ,
20552071 dev_tools_prune_errors : Optional [bool ] = None ,
20562072 ** flask_run_options ,
20572073 ):
@@ -2124,6 +2140,11 @@ def run(
21242140 env: ``DASH_SILENCE_ROUTES_LOGGING``
21252141 :type dev_tools_silence_routes_logging: bool
21262142
2143+ :param dev_tools_disable_version_check: Silence the upgrade
2144+ notification to prevent making requests to the Dash server.
2145+ env: ``DASH_DISABLE_VERSION_CHECK``
2146+ :type dev_tools_disable_version_check: bool
2147+
21272148 :param dev_tools_prune_errors: Reduce tracebacks to just user code,
21282149 stripping out Flask and Dash pieces. Only available with debugging.
21292150 `True` by default, set to `False` to see the complete traceback.
@@ -2161,6 +2182,7 @@ def run(
21612182 dev_tools_hot_reload_watch_interval ,
21622183 dev_tools_hot_reload_max_retry ,
21632184 dev_tools_silence_routes_logging ,
2185+ dev_tools_disable_version_check ,
21642186 dev_tools_prune_errors ,
21652187 )
21662188
0 commit comments