Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
  • Loading branch information
akshayka authored Jan 2, 2025
1 parent aed0ec6 commit db00c1a
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions docs/guides/exporting.md
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,7 @@ Check out an [example island-powered document](./island_example.md).
### Generating islands
There are many ways to generate marimo islands:
Use `MarimoIslandGenerator` to generate HTML for islands

!!! example

Expand All @@ -235,12 +235,12 @@ There are many ways to generate marimo islands:

///

/// tab | Class Implementation
/// tab | From code blocks

```python
import asyncio
import sys
from marimo._islands import MarimoIslandGenerator
from marimo import MarimoIslandGenerator
if sys.platform == 'win32':
asyncio.set_event_loop_policy(asyncio.WindowsSelectorEventLoopPolicy())
Expand Down Expand Up @@ -277,7 +277,7 @@ There are many ways to generate marimo islands:

///

/// tab | File Reference
/// tab | From notebook files

```python
from marimo import MarimoIslandGenerator
Expand Down Expand Up @@ -343,6 +343,5 @@ In order to use marimo islands, you need to import the necessary JS/CSS headers
</body>
```

While you can generate the HTML code for islands yourself, it is recommended to use our `MarimoIslandGenerator` class to generate the HTML code for you.

::: marimo.MarimoIslandGenerator

0 comments on commit db00c1a

Please sign in to comment.