Skip to content

Commit 37d3832

Browse files
authored
[FSTORE-1389] Update examples for creating project and secret (logicalclocks#383)
1 parent 0cbccb1 commit 37d3832

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

docs/user_guides/projects/project/create_project.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,13 +62,13 @@ Once the project is created the overview page for it will appear.
6262
```python
6363
import hopsworks
6464

65-
connection = hopsworks.connection()
65+
hopsworks.login()
6666
```
6767

6868
### Step 2: Create project
6969

7070
```python
71-
project = connection.create_project("my_project")
71+
project = hopsworks.create_project("my_project")
7272
```
7373

7474
### API Reference

docs/user_guides/projects/secrets/create_secret.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,9 +51,9 @@ If the secret should be private to this user, select `Private`, to share the sec
5151
```python
5252
import hopsworks
5353

54-
connection = hopsworks.connection()
54+
hopsworks.login()
5555

56-
secrets_api = connection.get_secrets_api()
56+
secrets_api = hopsworks.get_secrets_api()
5757
```
5858

5959
### Step 2: Create secret

0 commit comments

Comments
 (0)