You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<imgclass="block dark:hidden !m-0"src="https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/hub/spaces-dev-mode/dev-mode-controls.png"alt="screenshot of the dev mode controls interface."/>
34
+
<imgclass="hidden dark:block !m-0"src="https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/hub/spaces-dev-mode/dev-mode-controls-dark.png"alt="screenshot of the dev mode controls interface."/>
35
+
</div>
33
36
34
37
The application does not restart automatically when you change the code. For your changes to appear in the Space, you need to use the `Refresh` button that will restart the app.
35
38
@@ -38,6 +41,17 @@ The application does not restart automatically when you change the code. For you
38
41
You will need to manually run `pip install` from VS Code or SSH.
39
42
</div>
40
43
44
+
### SSH connection and VS Code
45
+
46
+
The Dev Mode allows you to connect to your Space's docker container using SSH.
47
+
48
+
Instructions to connect are listed in the Dev Mode controls modal.
49
+
50
+
You will need to add your machine's SSH public key to [your user account](https://huggingface.co/settings/keys) to be able to connect to the Space using SSH.
51
+
Check out the [Git over SSH](./security-git-ssh#add-a-ssh-key-to-your-account) documentation for more detailed instructions.
52
+
53
+
You can also use a local install of VS Code to connect to the Space container. To do so, you will need to install the [SSH Remote](https://marketplace.visualstudio.com/items?itemName=ms-vscode-remote.remote-ssh) extension.
54
+
41
55
### Persisting changes
42
56
43
57
<divclass="alert alert-warning">
@@ -58,33 +72,35 @@ git push
58
72
The modal will display a warning if you have uncommitted or unpushed changes in the Space:
<imgclass="block dark:hidden !m-0"src="https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/hub/spaces-dev-mode/dev-mode-controls-uncommitted.png"alt="screenshot of the dev mode controls interface."/>
77
+
<imgclass="hidden dark:block !m-0"src="https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/hub/spaces-dev-mode/dev-mode-controls-uncommitted-dark.png"alt="screenshot of the dev mode controls interface."/>
78
+
</div>
63
79
64
80
## Enabling Dev Mode
65
81
66
82
You can enable the Dev Mode on your Space from the web interface.
<imgclass="block dark:hidden !m-0"src="https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/TODO.png"alt="screenshot of the dev mode toggle from the contextual menu."/>
70
-
<imgclass="hidden dark:block !m-0"src="https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/TODO-dark.png"alt="screenshot of the dev mode toggle from the contextual menu."/>
85
+
<imgclass="block dark:hidden !m-0"src="https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/hub/spaces-dev-mode/dev-mode-enable-contextual.png"alt="screenshot of the dev mode toggle from the contextual menu."/>
86
+
<imgclass="hidden dark:block !m-0"src="https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/hub/spaces-dev-mode/dev-mode-enable-contextual-dark.png"alt="screenshot of the dev mode toggle from the contextual menu."/>
<imgclass="block dark:hidden !m-0"src="https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/TODO.png"alt="screenshot of the dev mode toggle from the Space settings."/>
75
-
<imgclass="hidden dark:block !m-0"src="https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/TODO-dark.png"alt="screenshot of the dev mode toggle from the Space settings."/>
90
+
<imgclass="block dark:hidden !m-0"src="https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/hub/spaces-dev-mode/dev-mode-enable-settings.png"alt="screenshot of the dev mode toggle from the Space settings."/>
91
+
<imgclass="hidden dark:block !m-0"src="https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/hub/spaces-dev-mode/dev-mode-enable-settings-dark.png"alt="screenshot of the dev mode toggle from the Space settings."/>
<imgclass="block dark:hidden !m-0"src="https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/TODO.png"alt="screenshot of the dev mode toggle from the Space logs."/>
80
-
<imgclass="hidden dark:block !m-0"src="https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/TODO-dark.png"alt="screenshot of the dev mode toggle from the Space logs."/>
95
+
<imgclass="block dark:hidden !m-0"src="https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/hub/spaces-dev-mode/dev-mode-enable-logs.png"alt="screenshot of the dev mode toggle from the Space logs."/>
96
+
<imgclass="hidden dark:block !m-0"src="https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/hub/spaces-dev-mode/dev-mode-enable-logs-dark.png"alt="screenshot of the dev mode toggle from the Space logs."/>
81
97
</div>
82
98
83
99
You can also create a Space with the dev mode enabled:
<imgclass="block dark:hidden !m-0"src="https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/TODO.png"alt="screenshot of the dev mode toggle from the Space creation page."/>
87
-
<imgclass="hidden dark:block !m-0"src="https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/TODO-dark.png"alt="screenshot of the dev mode toggle from the Space creation page."/>
102
+
<imgclass="block dark:hidden !m-0"src="https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/hub/spaces-dev-mode/dev-mode-creation-enable.png"alt="screenshot of the dev mode toggle from the Space creation page."/>
103
+
<imgclass="hidden dark:block !m-0"src="https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/hub/spaces-dev-mode/dev-mode-creation-enable-dark.png"alt="screenshot of the dev mode toggle from the Space creation page."/>
0 commit comments