Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 2 additions & 7 deletions src/content/docs/r2/data-catalog/get-started.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,6 @@ We will use [marimo](https://github.com/marimo-team/marimo) as a Python notebook
import pyarrow.parquet as pq

from pyiceberg.catalog.rest import RestCatalog
from pyiceberg.exceptions import NamespaceAlreadyExistsError

# Define catalog connection details (replace variables)
WAREHOUSE = "<WAREHOUSE>"
Expand All @@ -187,7 +186,6 @@ We will use [marimo](https://github.com/marimo-team/marimo) as a Python notebook
)
return (
CATALOG_URI,
NamespaceAlreadyExistsError,
RestCatalog,
TOKEN,
WAREHOUSE,
Expand All @@ -200,12 +198,9 @@ We will use [marimo](https://github.com/marimo-team/marimo) as a Python notebook


@app.cell
def _(NamespaceAlreadyExistsError, catalog):
def _(catalog):
# Create default namespace if needed
try:
catalog.create_namespace("default")
except NamespaceAlreadyExistsError:
pass
catalog.create_namespace_if_not_exists("default")
return


Expand Down
Loading