Skip to content

Commit

Permalink
πŸ“ Improve documentation of SetupSettings
Browse files Browse the repository at this point in the history
  • Loading branch information
falexwolf committed Sep 29, 2024
1 parent f43f9d2 commit 76b9907
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions lamindb_setup/core/_settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,11 +40,18 @@ def settings_dir(self) -> Path:

@property
def auto_connect(self) -> bool:
"""Auto-connect to loaded instance upon lamindb import.
"""Auto-connect to current instance upon `import lamindb`.
`lamin init` and `lamin load` switch this to `True`.
Upon installing `lamindb`, this setting is `False`.
Upon calling `lamin init` or `lamin connect` on the CLI, this setting is switched to `True`.
`ln.connect()` doesn't change the value of this setting.
You can manually change this setting
- in Python: `ln.setup.settings.auto_connect = True/False`
- via the CLI: `lamin settings set auto-connect true/false`
"""
return self._auto_connect_path.exists()

Expand Down

0 comments on commit 76b9907

Please sign in to comment.