Skip to content

A reactive notebook for Python — run reproducible experiments, query with SQL, execute as a script, deploy as an app, and version with git. Stored as pure Python. All in a modern, AI-native editor.

396 B
Raw Blame
/* Copyright 2026 Marimo. All rights reserved. */
import { toast } from "@/components/ui/use-toast";
import { Logger } from "./Logger";

export function reloadSafe() {
  try {
    window.location.reload();
  } catch (error) {
    Logger.error("Failed to reload page", error);
    toast({
      title: "Failed to reload page",
      description: "Please refresh the page manually.",
    });
  }
}