Skip to content

Commit

Permalink
Fix examples to use Project constructor instead of open
Browse files Browse the repository at this point in the history
  • Loading branch information
thomass-dev committed Jan 28, 2025
1 parent a10abe5 commit 50c28d7
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion examples/getting_started/plot_quick_start.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
temp_dir_path = Path(temp_dir.name)
os.chdir(temp_dir_path)
# sphinx_gallery_end_ignore
my_project = skore.open("my_project", create=True)
my_project = skore.Project("my_project")

# %%
# This will create a skore project directory named ``my_project.skore`` in your
Expand Down
2 changes: 1 addition & 1 deletion examples/getting_started/plot_skore_getting_started.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
temp_dir_path = Path(temp_dir.name)
os.chdir(temp_dir_path)
# sphinx_gallery_end_ignore
my_project = skore.open("my_project", create=True)
my_project = skore.Project("my_project")

# %%
# Now that the project exists, we can write some Python code (in the same
Expand Down
2 changes: 1 addition & 1 deletion examples/model_evaluation/plot_cross_validate.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
temp_dir_path = Path(temp_dir.name)
os.chdir(temp_dir_path)
# sphinx_gallery_end_ignore
my_project = skore.open("my_project", create=True)
my_project = skore.Project("my_project")


# %%
Expand Down
2 changes: 1 addition & 1 deletion examples/skore_project/plot_tracking_items.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
os.chdir(temp_dir_path)
# sphinx_gallery_end_ignore

my_project = skore.open("my_project", create=True)
my_project = skore.Project("my_project")

# %%
# Tracking an integer
Expand Down
2 changes: 1 addition & 1 deletion examples/skore_project/plot_working_with_projects.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
temp_dir_path = Path(temp_dir.name)
os.chdir(temp_dir_path)
# sphinx_gallery_end_ignore
my_project = skore.open("my_project", create=True)
my_project = skore.Project("my_project")

# %%
# Storing integers
Expand Down
2 changes: 1 addition & 1 deletion examples/use_cases/plot_employee_salaries.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
temp_dir_path = Path(temp_dir.name)
os.chdir(temp_dir_path)
# sphinx_gallery_end_ignore
my_project = skore.open("my_project", create=True)
my_project = skore.Project("my_project")

# %%
#
Expand Down

0 comments on commit 50c28d7

Please sign in to comment.