Hugging Face Spaces Dev Mode Release
Hugging Face has launched Spaces Dev Mode, a feature that enables developers to connect directly to their Spaces via VS Code or SSH. This eliminates the need to push local changes to a Space repository using git to test iterations, significantly streamlining the development workflow for AI-powered demos.
Direct IDE Integration and Real-time Editing
Spaces Dev Mode allows developers to bypass the traditional git-push-and-rebuild cycle. By connecting a local or browser-based VS Code instance or using SSH for other IDEs, users can edit code directly on the Space. Changes can be tested immediately by clicking "Refresh" within the Space, removing the requirement to rebuild the Space container for every minor adjustment.
Availability and Activation
Spaces Dev Mode is currently in beta and is available exclusively to Hugging Face PRO subscribers. To activate the feature, users must navigate to the Settings tab of their Space and select "Enable Dev Mode," which triggers an automatic restart of the Space.
Workflow for Persisting Changes
While Dev Mode allows for rapid prototyping and real-time testing, changes made during this session are not automatically permanent. Once a developer is satisfied with the modifications made via the IDE connection, they must commit and merge those changes to persist them in the repository.