Skip to content

Commit 693b857

Browse files
validbecknrichers
andauthored
Instructions for upgrading ValidMind (#490)
* Updated version.validmind variable * Edited _how-to-upgrade.qmd * Added Upgrade ValidMind instructions * Adjusted Troubleshooting page * Final? tweaks * Update site/releases/_how-to-upgrade.qmd Co-authored-by: Nik Richers <nik@validmind.ai> * Update site/developer/model-documentation/install-and-initialize-client-library.qmd Co-authored-by: Nik Richers <nik@validmind.ai> * Update site/developer/model-documentation/install-and-initialize-client-library.qmd Co-authored-by: Nik Richers <nik@validmind.ai> --------- Co-authored-by: Nik Richers <nik@validmind.ai>
1 parent 74f2173 commit 693b857

File tree

5 files changed

+126
-30
lines changed

5 files changed

+126
-30
lines changed

site/_variables.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ gcp:
6666

6767
version:
6868
python: "≧3.8 and <3.11"
69-
validmind: v2.0.7
69+
validmind: v2.5.19
7070

7171
# OTHER
7272

site/developer/model-documentation/install-and-initialize-client-library.qmd

Lines changed: 44 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ date: last-modified
44
aliases:
55
- install-and-initialize-validmind.html
66
- ../../guide/install-and-initialize-developer-framework.html
7+
filters:
8+
- tachyons
79
---
810

911
ValidMind generates a unique _code snippet_ for each registered model to connect with your developer environment. You initialize the client library with this code snippet, ensuring that your documentation and tests are uploaded to the correct model.
@@ -31,7 +33,9 @@ The {{< var vm.developer >}} also requires access to the data sources where data
3133

3234
:::
3335

34-
## Locate the {{< var vm.developer >}} integration instructions
36+
## Install ValidMind
37+
38+
### Locate the {{< var vm.developer >}} integration instructions
3539

3640
For existing models, this information can be found in the {{< var validmind.platform >}}:
3741

@@ -43,15 +47,15 @@ For existing models, this information can be found in the {{< var validmind.plat
4347

4448
4. Locate the code snippet and click **{{< fa regular copy >}} Copy snippet to clipboard**.
4549

46-
## Install the client library
50+
### Install the client library
4751

4852
To install the client library:
4953

5054
```python
5155
%pip install validmind
5256
```
5357

54-
## Initialize the client library
58+
### Initialize the client library
5559

5660
To initialize the client library, paste the code snippet with the client integration details directly into your development source code, replacing this example with your own:
5761

@@ -72,6 +76,38 @@ To also enable monitoring, add `monitoring=True` to the `vm.init` method in your
7276

7377
After you have pasted the code snippet into your development source code and run your code, the Python client library will connect and register with ValidMind. You can now use the {{< var vm.developer >}} to document and test your models, and to upload model documentation and test results to the {{< var vm.platform >}}.
7478

79+
## Upgrade ValidMind
80+
81+
After installing ValidMind,[^5] you'll want to periodically make sure you are on the latest version to access any new features and other enhancements:
82+
83+
1. In your Jupyter Notebook or developer environment, retrieve the information for the currently installed version of ValidMind:
84+
85+
```python
86+
%pip show validmind
87+
```
88+
89+
::: {.column-margin}
90+
**Example output:**
91+
```bash
92+
Name: validmind
93+
Version: 2.5.15
94+
...
95+
```
96+
:::
97+
98+
2. If the version returned is lower than the version indicated in our production open-source code,[^6] run the following command:
99+
100+
```python
101+
%pip install --upgrade validmind
102+
```
103+
104+
::: {.column-margin}
105+
::: {.callout title="Current version:"}
106+
{{< var version.validmind >}}
107+
:::
108+
:::
109+
110+
75111
<!-- FOOTNOTES -->
76112

77113
[^1]: [Manage permissions](/guide/configuration/manage-permissions.qmd)
@@ -80,4 +116,8 @@ After you have pasted the code snippet into your development source code and run
80116

81117
[^3]: [Working with the model inventory](/guide/model-inventory/working-with-model-inventory.qmd#search-filter-and-sort-models)
82118

83-
[^4]: [Ongoing monitoring](/guide/monitoring/ongoing-monitoring.qmd)
119+
[^4]: [Ongoing monitoring](/guide/monitoring/ongoing-monitoring.qmd)
120+
121+
[^5]: [Install ValidMind](#install-validmind)
122+
123+
[^6]: **GitHub:** [validmind/developer-framework/validmind/&lowbar;&lowbar;version&lowbar;&lowbar;.py](https://github.com/validmind/developer-framework/blob/prod/validmind/__version__.py)

site/releases/_how-to-upgrade.qmd

Lines changed: 13 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,16 +11,23 @@ To access the latest version of the {{< var validmind.platform >}},^[[Log in to
1111

1212
#### {{< var validmind.developer >}}
1313

14-
To upgrade the {{< var validmind.developer >}}:^[[Get started with the {{< var validmind.developer >}}](/developer/get-started-developer-framework.qmd)]
14+
To upgrade to the latest version of the {{< var validmind.developer >}}:^[[Get started with the {{< var validmind.developer >}}](/developer/get-started-developer-framework.qmd)]
1515

16-
- [Using JupyterHub](/get-started/developer/try-with-jupyterhub.qmd): Hard refresh your browser tab and re-run the `%pip install --upgrade validmind` cell.
16+
1. In your Jupyter Notebook:
17+
18+
- **Using JupyterHub:**^[[Try it with JupyterHub](/get-started/developer/try-with-jupyterhub.qmd)] Hard refresh your browser tab.
19+
- **In your own developer environment**:^[[Try it in your own developer environment](/get-started/developer/try-in-your-own-environment.html)] Restart your notebook.
20+
21+
2. Locate the `%pip install -q validmind` cell and replace the contents with:
1722

18-
- [In your own developer environment](/developer/model-documentation/install-and-initialize-client-library.qmd): Restart your notebook and re-run:
19-
2023
```python
21-
%pip install validmind
24+
%pip install --upgrade validmind
2225
```
2326

24-
You may need to restart your kernel after re-running the installation package for changes to be applied.
27+
3. Run the edited code cell.
28+
29+
::: {.callout-important}
30+
You may need to restart your kernel after running the upgrade package for changes to be applied.
31+
:::
2532

2633
:::

site/support/support.qmd

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,20 @@ title: "Support"
33
date: last-modified
44
aliases:
55
- ../guide/support.html
6+
filters:
7+
- tachyons
8+
listing:
9+
id: get-help
10+
type: grid
11+
sort: false
12+
grid-columns: 2
13+
# image-height: 100%
14+
contents:
15+
- path: troubleshooting.qmd
16+
- path: mailto:support@validmind.com
17+
title: "{{< fa envelope-circle-check >}} support@validmind.com"
18+
description: "Don't see what you're looking for? Send us an email to get help from a human."
19+
fields: [title, description]
620
---
721

822
Our support team can provide you with quick and easy access to the resources you need to troubleshoot technical issues and help you get the most out of the {{< var validmind.product >}}.
@@ -29,7 +43,5 @@ Additional troubleshooting content might be available in the [Help Center](https
2943

3044
## Get help
3145

32-
::: {.callout title="Don't see what you are looking for? "}
33-
Email [support@validmind.com](mailto:support@validmind.com) to get help from a human.
34-
46+
:::{#get-help}
3547
:::

site/support/troubleshooting.qmd

Lines changed: 53 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,44 +1,81 @@
11
---
22
title: "Troubleshooting"
33
date: last-modified
4+
toc-depth: 2
45
aliases:
56
- ../guide/troubleshooting.html
7+
listing:
8+
id: more
9+
type: grid
10+
sort: false
11+
grid-columns: 2
12+
# image-height: 100%
13+
contents:
14+
- path: ../faq/faq.qmd
15+
title: "FAQ"
16+
description: "Browse through common questions."
17+
- path: support.qmd
18+
title: "Contact Support"
19+
description: "Get more help with troubleshooting technical issues."
20+
fields: [title, description]
621
---
722

8-
Learn how to resolve commonly encountered issues with the {{< var vm.developer >}}.
23+
Learn how to resolve commonly encountered issues with the {{< var validmind.product >}}.
24+
25+
## Cannot access expected features
26+
27+
### Issue
28+
You cannot access functionality described in our user guides or recent releases.
29+
30+
### Fix
31+
Make sure you are running most recent versions of ValidMind,[^1] and have the proper permissions assigned.[^2]
932

1033
## Cannot install the {{< var validmind.developer >}}
1134

12-
#### Issue
35+
### Issue
1336
You cannot run `pip install validmind` or `import validmind as vm` in the {{< var validmind.developer >}} notebooks.
1437

15-
#### Fix
16-
Make sure you are installing the latest version of the {{< var vm.developer >}} by running this command:
38+
### Fix
39+
Make sure you are installing the latest version of the {{< var vm.developer >}}[^3] by running this command:
40+
41+
```python
42+
%pip install --upgrade validmind
43+
```
1744

18-
```python
19-
%pip install --upgrade validmind
20-
```
2145

2246
## Cannot initialize ValidMind client library
2347

24-
#### Issue
48+
### Issue
2549
When you run `vm.init()`, you encounter an error message like this:
2650

27-
```bash
28-
MissingAPICredentialsError: API key and secret must be provided either as environment variables or as arguments to init.
29-
```
51+
```bash
52+
MissingAPICredentialsError: API key and secret must be provided either as environment variables or as arguments to init.
53+
```
3054

3155
or
3256

33-
```bash
34-
InvalidProjectError: Model could not be found
35-
```
57+
```bash
58+
InvalidProjectError: Model could not be found
59+
```
3660

37-
#### Fix
61+
### Fix
3862
Make sure that you are using the correct initialization credentials for the model you are trying to connect to.
3963

4064
Follow the steps in [Install and initialize the client library](/developer/model-documentation/install-and-initialize-client-library.qmd) for detailed instructions on how to integrate the {{< var vm.developer >}} and upload to the {{< var vm.platform >}}.
4165

66+
<span id="how-to-upgrade"><span>
67+
{{< include /releases/_how-to-upgrade.qmd >}}
68+
4269
## Additional resources
4370

44-
Check out our [FAQ](/faq/faq.qmd) page to browse through common questions, or [contact our support team](support.qmd) for more help troubleshooting technical issues.
71+
:::{#more}
72+
:::
73+
74+
75+
<!-- FOOTNOTES -->
76+
77+
[^1]: [{{< fa arrow-up-from-bracket >}} How to upgrade](#how-to-upgrade)
78+
79+
[^2]: [Manage permissions](/guide/configuration/manage-permissions.qmd)
80+
81+
[^3]: [Upgrade ValidMind](/developer/model-documentation/install-and-initialize-client-library.qmd#upgrade-validmind)

0 commit comments

Comments
 (0)