-
Notifications
You must be signed in to change notification settings - Fork 333
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docs: open playground notebooks from GitHub URL (#3399)
* Document how to open notebooks hosted on GitHub in the playground * Document how this gets you access to the repo's entire file tree (!) * Add a bookmarklet for convenience
- Loading branch information
Showing
4 changed files
with
76 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
import marimo | ||
|
||
__generated_with = "0.10.12" | ||
app = marimo.App(width="medium") | ||
|
||
|
||
@app.cell | ||
def _(): | ||
import marimo as mo | ||
return (mo,) | ||
|
||
|
||
@app.cell | ||
def _(mo): | ||
with open(mo.notebook_dir() / ".." / ".." / "pyproject.toml") as f: | ||
contents = f.read() | ||
|
||
mo.plain_text(contents) | ||
return contents, f | ||
|
||
|
||
if __name__ == "__main__": | ||
app.run() |