Skip to content

Commit

Permalink
Add gatherUsageStats flag
Browse files Browse the repository at this point in the history
  • Loading branch information
lukasmasuch committed Jan 16, 2024
1 parent 1b1bd7e commit 899730a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/kernel/src/worker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -279,6 +279,8 @@ async function loadPyodideAndPackages() {
console.debug("Booting up the Streamlit server");
// The following Python code is based on streamlit.web.cli.main_run().
self.__streamlitFlagOptions__ = {
// gatherUsageStats is disabled as default, but can be enabled explicitly by setting it to true.
"browser.gatherUsageStats": false,
...streamlitConfig,
"runner.fastReruns": false, // Fast reruns do not work well with the async script runner of stlite. See https://github.com/whitphx/stlite/pull/550#issuecomment-1505485865.
};
Expand Down

0 comments on commit 899730a

Please sign in to comment.