While the sampling is performed locally in the browser, a compilation
server is required to compile the Stan programs.
-
+
- {isConnected ? (
-
Connected
- ) : (
-
Not connected
- )}
-
-
- retry
-
+
+ {isConnected ? (
+ Connected
+ ) : (
+ Not connected
+ )}
+
+
+ retry
+
+
-
-
-
{
- if (choice === "custom") setChoice("public");
- setStanWasmServerUrl(publicUrl);
- }}
- />
-
Public server
-
+
-
{
- if (choice === "custom") setChoice("local");
- setStanWasmServerUrl(localUrl);
- }}
- />
-
Local server
-
+
+
+ Compilation server
+
+
+ }
+ label="Public server"
+ />
+ }
+ label="Local server"
+ />
+ }
+ label="Custom server"
+ />
+
- setChoice("custom")}
- />
- Custom server
-
-
- setStanWasmServerUrl(e.target.value)}
- />
-
-
- {choice === "local" && (
-
-
To start a local compilation server:
-
-
- docker run -p 8083:8080 -it magland/stan-wasm-server:latest
-
-
-
- )}
- {choice === "public" && (
+ {choice === "custom" && (
- The public server is provided for convenience, but may not be as
- reliable as a local server, depending on the current load and
- availability.
+ setStanWasmServerUrl(e.target.value)}
+ />
)}
-
- closeDialog()}>Close
-
+
+
+ {choice === "local" && (
+
+
To start a local compilation server:
+
+
+ docker run -p 8083:8080 -it magland/stan-wasm-server:latest
+
+
+
+ )}
+ {choice === "public" && (
+
+
+ The public server is provided for convenience, but may not be as
+ reliable as a local server, depending on the current load and
+ availability.
+
+
+ )}
+
+
+
closeDialog()}>Close
);
};
diff --git a/gui/src/app/pages/HomePage/TopBar.tsx b/gui/src/app/pages/HomePage/TopBar.tsx
index 918bd37..7936c32 100644
--- a/gui/src/app/pages/HomePage/TopBar.tsx
+++ b/gui/src/app/pages/HomePage/TopBar.tsx
@@ -1,6 +1,5 @@
/* eslint-disable @typescript-eslint/no-explicit-any */
import CompilationServerConnectionControl from "@SpStanc/CompilationServerConnectionControl";
-import { SmallIconButton } from "@fi-sci/misc";
import { Menu, QuestionMark } from "@mui/icons-material";
import AppBar from "@mui/material/AppBar";
import IconButton from "@mui/material/IconButton";
@@ -35,18 +34,18 @@ const TopBar: FunctionComponent