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.

FAQ: dotenv, restart kernel (#750)

Akshay Agrawal04edbafba596
diff --git a/docs/faq.md b/docs/faq.md
index 01d37443c7..10a421a811 100644
--- a/docs/faq.md
+++ b/docs/faq.md
@@ -21,6 +21,7 @@
- [How do I restart a notebook?](#faq-restart)
- [How do I reload modules?](#faq-reload)
- [How does marimo treat type annotations?](#faq-annotations)
+ - [How do I use dotenv?](#faq-dotenv)
- [What packages can I use?](#faq-packages)
- [How do I use marimo on a remote server?](#faq-remote)
- [How do I deploy apps?](#faq-app-deploy)
@@ -309,8 +310,8 @@ For usage examples, see the
### How do I restart a notebook?
-To clear all program memory and restart the notebook from scratch, refresh
-the browser page.
+To clear all program memory and restart the notebook from scratch, open the
+notebook menu in the top right and click "Restart kernel".
<a name="faq-reload"></a>
@@ -375,6 +376,14 @@ x: "A" = ...
For Python 3.12+, marimo additionally implements annotation scoping.
+
+<a name="faq-dotenv"></a>
+
+### How do I use dotenv?
+
+The package `dotenv`'s `loadenv()` function does not work out-of-the box in
+marimo. Instead, use `dotenv.load_dotenv(dotenv.find_dotenv(usecwd=True))`.
+
<a name="faq-packages"></a>
### What packages can I use?