import{s as ds,n as ms,o as rs}from"../chunks/scheduler.9cda857a.js";import{S as us,i as hs,e as i,s as a,c,r as fs,h as gs,a as o,d as s,b as n,f as ps,g as d,j as p,u as vs,k as f,q as ve,l as Ms,m as l,n as m,t as r,o as u,p as h}from"../chunks/index.003612b0.js";import{C as ys}from"../chunks/CopyLLMTxtMenu.44d08a39.js";import{C as cs}from"../chunks/CodeBlock.a90632f1.js";import{H as g,E as bs}from"../chunks/MermaidChart.svelte_svelte_type_style_lang.e5cfda8c.js";function xs(wt){let v,be,Me,xe,j,we,H,Ce,T,Ct="<p>This feature is still in Beta stage.</p>",Te,$,Tt='<p>The Spaces Dev Mode is part of <a href="https://huggingface.co/pro">PRO</a> or <a href="https://huggingface.co/enterprise">Team &amp; Enterprise</a> plans.</p>',$e,D,ke,_,$t="Spaces Dev Mode is a feature that eases the debugging of your application and makes iterating on Spaces faster.",Se,L,kt="Whenever your commit some changes to your Space repo, the underlying Docker image gets rebuilt, and then a new virtual machine is provisioned to host the new container.",Ue,I,St="The Dev Mode allows you to update your Space much quicker by overriding the Docker image.",je,J,Ut="The Dev Mode Docker image starts your application as a sub-process, allowing you to restart it without stopping the Space container itself. It also starts a VS Code server and a SSH server in the background for you to connect to the Space.",He,P,jt="The ability to connect to the running Space unlocks several use cases:",De,E,Ht="<li>You can make changes to the app code without the Space rebuilding everytime</li> <li>You can debug a running application and monitor resources live</li>",_e,B,Dt="Overall it makes developing and experimenting with Spaces much faster by skipping the Docker image rebuild phase.",Le,R,Ie,V,_t="Once the Dev Mode is enabled on your Space, you should see a modal like the following.",Je,M,Lt='<img class="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."/> <img class="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."/>',Pe,q,It="The application does not restart automatically when you change the code. For your changes to appear in the Space, you need to use the <code>Refresh</code> button that will restart the app.",Ee,k,Jt="If you're using the Gradio SDK, or if your application is Python-based, note that requirements are not installed automatically.\n  You will need to manually run `pip install` from VS Code or SSH.",Be,A,Re,Z,Pt="The Dev Mode allows you to connect to your Space’s docker container using SSH.",Ve,G,Et="Instructions to connect are listed in the Dev Mode controls modal.",qe,Y,Bt=`You will need to add your machine’s SSH public key to <a href="https://huggingface.co/settings/keys" rel="nofollow">your user account</a> to be able to connect to the Space using SSH.
Check out the <a href="./security-git-ssh#add-a-ssh-key-to-your-account">Git over SSH</a> documentation for more detailed instructions.`,Ae,F,Rt='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 <a href="https://marketplace.visualstudio.com/items?itemName=ms-vscode-remote.remote-ssh" rel="nofollow">SSH Remote</a> extension.',Ze,Q,Ge,S,Vt=`The changes you make when Dev Mode is enabled are not persisted to the Space repo automatically.
By default, they will be discarded when Dev Mode is disabled or when the Space goes to sleep.`,Ye,N,Fe,O,qt="The modal will display a warning if you have uncommitted or unpushed changes in the Space:",Qe,y,At='<img class="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."/> <img class="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."/>',Ne,z,Oe,W,Zt="You can enable the Dev Mode on your Space from the web interface.",ze,b,Gt='<img class="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."/> <img class="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."/>',We,x,Yt='<img class="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."/> <img class="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."/>',Xe,w,Ft='<img class="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."/> <img class="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."/>',Ke,X,Qt="You can also create a Space with the dev mode enabled:",et,C,Nt='<img class="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."/> <img class="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."/>',tt,K,st,ee,Ot="Dev Mode is currently not available for static Spaces. Docker Spaces also have some additional requirements.",lt,te,at,se,zt="Dev Mode is supported for Docker Spaces. However, your Space needs to comply with the following rules for Dev Mode to work properly.",nt,le,Wt="<li>The following packages must be installed:</li>",it,ae,Xt="<li><code>bash</code> (required to establish SSH connections)</li> <li><code>curl</code>, <code>wget</code> and <code>procps</code> (required by the VS Code server process)</li> <li><code>git</code> and <code>git-lfs</code> to be able to commit and push changes from your Dev Mode environment</li>",ot,U,Kt='<li><p>Your application code must be located in the <code>/app</code> folder for the Dev Mode daemon to be able to detect changes.</p></li> <li><p>The <code>/app</code> folder must be owned by the user with uid <code>1000</code> to allow you to make changes to the code.</p></li> <li><p>The Dockerfile must contain a <code>CMD</code> instruction for startup. Checkout <a href="https://docs.docker.com/reference/dockerfile/#cmd" rel="nofollow">Docker’s documentation</a> about the <code>CMD</code> instruction for more details.</p></li>',pt,ne,es="Dev Mode works well when the base image is debian-based (eg, ubuntu).",ct,ie,ts="More exotic linux distros (eg, alpine) are not tested and Dev Mode is not guaranteed to work on them.",dt,oe,mt,pe,ss="This is an example of a Dockerfile compatible with Spaces Dev Mode.",rt,ce,ls=`It installs the required packages with <code>apt-get</code>, along with a couple more for developer convenience (namely: <code>top</code>, <code>vim</code> and <code>nano</code>).
It then starts a NodeJS application from <code>/app</code>.`,ut,de,ht,me,as=`There are several examples of Dev Mode compatible Docker Spaces in this organization.
Feel free to duplicate them in your namespace!`,ft,re,ns='Example Python app (FastAPI HTTP server): <a href="https://huggingface.co/spaces/dev-mode-explorers/dev-mode-python" rel="nofollow">https://huggingface.co/spaces/dev-mode-explorers/dev-mode-python</a>',gt,ue,is='Example Javascript app (Express.js HTTP server): <a href="https://huggingface.co/spaces/dev-mode-explorers/dev-mode-javascript" rel="nofollow">https://huggingface.co/spaces/dev-mode-explorers/dev-mode-javascript</a>',vt,he,Mt,fe,os='You can share your feedback on Spaces Dev Mode directly on the HF Hub: <a href="https://huggingface.co/spaces/dev-mode-explorers/README/discussions" rel="nofollow">https://huggingface.co/spaces/dev-mode-explorers/README/discussions</a>',yt,ge,bt,ye,xt;return j=new ys({props:{containerStyle:"float: right; margin-left: 10px; display: inline-flex; position: relative; z-index: 10;"}}),H=new g({props:{title:"Spaces Dev Mode: Seamless development in Spaces",local:"spaces-dev-mode-seamless-development-in-spaces",headingTag:"h1"}}),D=new g({props:{title:"Spaces Dev Mode",local:"spaces-dev-mode",headingTag:"h2"}}),R=new g({props:{title:"Interface",local:"interface",headingTag:"h2"}}),A=new g({props:{title:"SSH connection and VS Code",local:"ssh-connection-and-vs-code",headingTag:"h3"}}),Q=new g({props:{title:"Persisting changes",local:"persisting-changes",headingTag:"h3"}}),N=new cs({props:{code:"JTIzJTIwQWRkJTIwY2hhbmdlcyUyMGFuZCUyMGNvbW1pdCUyMHRoZW0lMEFnaXQlMjBhZGQlMjAuJTBBZ2l0JTIwY29tbWl0JTIwLW0lMjAlMjJQZXJzaXN0JTIwY2hhbmdlcyUyMGZyb20lMjBEZXYlMjBNb2RlJTIyJTBBJTBBJTIzJTIwUHVzaCUyMHRoZSUyMGNvbW1pdCUyMHRvJTIwcGVyc2lzdCUyMHRoZW0lMjBpbiUyMHRoZSUyMHJlcG8lMEFnaXQlMjBwdXNo",highlighted:`<span class="hljs-meta prompt_"># </span><span class="language-bash">Add changes and commit them</span>
git add .
git commit -m &quot;Persist changes from Dev Mode&quot;
<span class="hljs-meta prompt_">
# </span><span class="language-bash">Push the commit to persist them <span class="hljs-keyword">in</span> the repo</span>
git push`,wrap:!1}}),z=new g({props:{title:"Enabling Dev Mode",local:"enabling-dev-mode",headingTag:"h2"}}),K=new g({props:{title:"Limitations",local:"limitations",headingTag:"h2"}}),te=new g({props:{title:"Docker Spaces",local:"docker-spaces",headingTag:"h3"}}),oe=new g({props:{title:"Example of compatible Dockerfiles",local:"example-of-compatible-dockerfiles",headingTag:"h3"}}),de=new cs({props:{code:"RlJPTSUyMG5vZGUlM0ExOS1zbGltJTBBJTBBUlVOJTIwYXB0LWdldCUyMHVwZGF0ZSUyMCUyNiUyNiUyMCU1QyUwQSUyMCUyMCUyMCUyMGFwdC1nZXQlMjBpbnN0YWxsJTIwLXklMjAlNUMlMEElMjAlMjAlMjAlMjAlMjAlMjBiYXNoJTIwJTVDJTBBJTIwJTIwJTIwJTIwJTIwJTIwZ2l0JTIwZ2l0LWxmcyUyMCU1QyUwQSUyMCUyMCUyMCUyMCUyMCUyMHdnZXQlMjBjdXJsJTIwcHJvY3BzJTIwJTVDJTBBJTIwJTIwJTIwJTIwJTIwJTIwaHRvcCUyMHZpbSUyMG5hbm8lMjAlMjYlMjYlMjAlNUMlMEElMjAlMjAlMjAlMjBybSUyMC1yZiUyMCUyRnZhciUyRmxpYiUyRmFwdCUyRmxpc3RzJTJGKiUwQSUwQSUwQVdPUktESVIlMjAlMkZhcHAlMEFDT1BZJTIwLS1saW5rJTIwLiUyRiUyMCUyRmFwcCUwQVJVTiUyMCUyMG5wbSUyMGklMjAlMEElMEFSVU4lMjBjaG93biUyMDEwMDAlMjAlMkZhcHAlMEFVU0VSJTIwMTAwMCUwQUNNRCUyMCU1QiUyMm5vZGUlMjIlMkMlMjAlMjJpbmRleC5qcyUyMiU1RA==",highlighted:`<span class="hljs-keyword">FROM</span> node:<span class="hljs-number">19</span>-slim

<span class="hljs-keyword">RUN</span><span class="language-bash"> apt-get update &amp;&amp; \\
    apt-get install -y \\
      bash \\
      git git-lfs \\
      wget curl procps \\
      htop vim nano &amp;&amp; \\
    <span class="hljs-built_in">rm</span> -rf /var/lib/apt/lists/*</span>


<span class="hljs-keyword">WORKDIR</span><span class="language-bash"> /app</span>
<span class="hljs-keyword">COPY</span><span class="language-bash"> --<span class="hljs-built_in">link</span> ./ /app</span>
<span class="hljs-keyword">RUN</span><span class="language-bash">  npm i </span>

<span class="hljs-keyword">RUN</span><span class="language-bash"> <span class="hljs-built_in">chown</span> 1000 /app</span>
<span class="hljs-keyword">USER</span> <span class="hljs-number">1000</span>
<span class="hljs-keyword">CMD</span><span class="language-bash"> [<span class="hljs-string">&quot;node&quot;</span>, <span class="hljs-string">&quot;index.js&quot;</span>]</span>`,wrap:!1}}),he=new g({props:{title:"Feedback",local:"feedback",headingTag:"h2"}}),ge=new bs({props:{source:"https://github.com/huggingface/hub-docs/blob/main/docs/hub/spaces-dev-mode.md"}}),{c(){v=i("meta"),be=a(),Me=i("p"),xe=a(),c(j.$$.fragment),we=a(),c(H.$$.fragment),Ce=a(),T=i("blockquote"),T.innerHTML=Ct,Te=a(),$=i("blockquote"),$.innerHTML=Tt,$e=a(),c(D.$$.fragment),ke=a(),_=i("p"),_.textContent=$t,Se=a(),L=i("p"),L.textContent=kt,Ue=a(),I=i("p"),I.textContent=St,je=a(),J=i("p"),J.textContent=Ut,He=a(),P=i("p"),P.textContent=jt,De=a(),E=i("ul"),E.innerHTML=Ht,_e=a(),B=i("p"),B.textContent=Dt,Le=a(),c(R.$$.fragment),Ie=a(),V=i("p"),V.textContent=_t,Je=a(),M=i("div"),M.innerHTML=Lt,Pe=a(),q=i("p"),q.innerHTML=It,Ee=a(),k=i("div"),k.textContent=Jt,Be=a(),c(A.$$.fragment),Re=a(),Z=i("p"),Z.textContent=Pt,Ve=a(),G=i("p"),G.textContent=Et,qe=a(),Y=i("p"),Y.innerHTML=Bt,Ae=a(),F=i("p"),F.innerHTML=Rt,Ze=a(),c(Q.$$.fragment),Ge=a(),S=i("div"),S.textContent=Vt,Ye=fs(`
If you wish to persist changes made while Dev Mode is enabled, you need to use \`git\` from inside the Space container (using VS Code or SSH). For example:

	`),c(N.$$.fragment),Fe=a(),O=i("p"),O.textContent=qt,Qe=a(),y=i("div"),y.innerHTML=At,Ne=a(),c(z.$$.fragment),Oe=a(),W=i("p"),W.textContent=Zt,ze=a(),b=i("div"),b.innerHTML=Gt,We=a(),x=i("div"),x.innerHTML=Yt,Xe=a(),w=i("div"),w.innerHTML=Ft,Ke=a(),X=i("p"),X.textContent=Qt,et=a(),C=i("div"),C.innerHTML=Nt,tt=a(),c(K.$$.fragment),st=a(),ee=i("p"),ee.textContent=Ot,lt=a(),c(te.$$.fragment),at=a(),se=i("p"),se.textContent=zt,nt=a(),le=i("ol"),le.innerHTML=Wt,it=a(),ae=i("ul"),ae.innerHTML=Xt,ot=a(),U=i("ol"),U.innerHTML=Kt,pt=a(),ne=i("p"),ne.textContent=es,ct=a(),ie=i("p"),ie.textContent=ts,dt=a(),c(oe.$$.fragment),mt=a(),pe=i("p"),pe.textContent=ss,rt=a(),ce=i("p"),ce.innerHTML=ls,ut=a(),c(de.$$.fragment),ht=a(),me=i("p"),me.textContent=as,ft=a(),re=i("p"),re.innerHTML=ns,gt=a(),ue=i("p"),ue.innerHTML=is,vt=a(),c(he.$$.fragment),Mt=a(),fe=i("p"),fe.innerHTML=os,yt=a(),c(ge.$$.fragment),bt=a(),ye=i("p"),this.h()},l(e){const t=gs("svelte-u9bgzb",document.head);v=o(t,"META",{name:!0,content:!0}),t.forEach(s),be=n(e),Me=o(e,"P",{}),ps(Me).forEach(s),xe=n(e),d(j.$$.fragment,e),we=n(e),d(H.$$.fragment,e),Ce=n(e),T=o(e,"BLOCKQUOTE",{class:!0,"data-svelte-h":!0}),p(T)!=="svelte-3imr75"&&(T.innerHTML=Ct),Te=n(e),$=o(e,"BLOCKQUOTE",{class:!0,"data-svelte-h":!0}),p($)!=="svelte-hc50pw"&&($.innerHTML=Tt),$e=n(e),d(D.$$.fragment,e),ke=n(e),_=o(e,"P",{"data-svelte-h":!0}),p(_)!=="svelte-17joiqd"&&(_.textContent=$t),Se=n(e),L=o(e,"P",{"data-svelte-h":!0}),p(L)!=="svelte-fepvi0"&&(L.textContent=kt),Ue=n(e),I=o(e,"P",{"data-svelte-h":!0}),p(I)!=="svelte-1qcur0i"&&(I.textContent=St),je=n(e),J=o(e,"P",{"data-svelte-h":!0}),p(J)!=="svelte-bqdk0g"&&(J.textContent=Ut),He=n(e),P=o(e,"P",{"data-svelte-h":!0}),p(P)!=="svelte-d2q5gy"&&(P.textContent=jt),De=n(e),E=o(e,"UL",{"data-svelte-h":!0}),p(E)!=="svelte-19nl0he"&&(E.innerHTML=Ht),_e=n(e),B=o(e,"P",{"data-svelte-h":!0}),p(B)!=="svelte-y1a6fj"&&(B.textContent=Dt),Le=n(e),d(R.$$.fragment,e),Ie=n(e),V=o(e,"P",{"data-svelte-h":!0}),p(V)!=="svelte-sqjhf1"&&(V.textContent=_t),Je=n(e),M=o(e,"DIV",{class:!0,style:!0,"data-svelte-h":!0}),p(M)!=="svelte-1p2nfy2"&&(M.innerHTML=Lt),Pe=n(e),q=o(e,"P",{"data-svelte-h":!0}),p(q)!=="svelte-a3xjb"&&(q.innerHTML=It),Ee=n(e),k=o(e,"DIV",{class:!0,"data-svelte-h":!0}),p(k)!=="svelte-89w5io"&&(k.textContent=Jt),Be=n(e),d(A.$$.fragment,e),Re=n(e),Z=o(e,"P",{"data-svelte-h":!0}),p(Z)!=="svelte-7tup7c"&&(Z.textContent=Pt),Ve=n(e),G=o(e,"P",{"data-svelte-h":!0}),p(G)!=="svelte-ll49ce"&&(G.textContent=Et),qe=n(e),Y=o(e,"P",{"data-svelte-h":!0}),p(Y)!=="svelte-bi8bcm"&&(Y.innerHTML=Bt),Ae=n(e),F=o(e,"P",{"data-svelte-h":!0}),p(F)!=="svelte-18xxcya"&&(F.innerHTML=Rt),Ze=n(e),d(Q.$$.fragment,e),Ge=n(e),S=o(e,"DIV",{class:!0,"data-svelte-h":!0}),p(S)!=="svelte-x52hht"&&(S.textContent=Vt),Ye=vs(e,`
If you wish to persist changes made while Dev Mode is enabled, you need to use \`git\` from inside the Space container (using VS Code or SSH). For example:

	`),d(N.$$.fragment,e),Fe=n(e),O=o(e,"P",{"data-svelte-h":!0}),p(O)!=="svelte-1nu5wjq"&&(O.textContent=qt),Qe=n(e),y=o(e,"DIV",{class:!0,style:!0,"data-svelte-h":!0}),p(y)!=="svelte-po1de"&&(y.innerHTML=At),Ne=n(e),d(z.$$.fragment,e),Oe=n(e),W=o(e,"P",{"data-svelte-h":!0}),p(W)!=="svelte-5ckl3d"&&(W.textContent=Zt),ze=n(e),b=o(e,"DIV",{class:!0,style:!0,"data-svelte-h":!0}),p(b)!=="svelte-1b34ljc"&&(b.innerHTML=Gt),We=n(e),x=o(e,"DIV",{class:!0,style:!0,"data-svelte-h":!0}),p(x)!=="svelte-1wppxua"&&(x.innerHTML=Yt),Xe=n(e),w=o(e,"DIV",{class:!0,style:!0,"data-svelte-h":!0}),p(w)!=="svelte-17l661q"&&(w.innerHTML=Ft),Ke=n(e),X=o(e,"P",{"data-svelte-h":!0}),p(X)!=="svelte-1ncgrwp"&&(X.textContent=Qt),et=n(e),C=o(e,"DIV",{class:!0,style:!0,"data-svelte-h":!0}),p(C)!=="svelte-z3iqzc"&&(C.innerHTML=Nt),tt=n(e),d(K.$$.fragment,e),st=n(e),ee=o(e,"P",{"data-svelte-h":!0}),p(ee)!=="svelte-1r40a2v"&&(ee.textContent=Ot),lt=n(e),d(te.$$.fragment,e),at=n(e),se=o(e,"P",{"data-svelte-h":!0}),p(se)!=="svelte-1d8t4jy"&&(se.textContent=zt),nt=n(e),le=o(e,"OL",{"data-svelte-h":!0}),p(le)!=="svelte-1ajt0u8"&&(le.innerHTML=Wt),it=n(e),ae=o(e,"UL",{"data-svelte-h":!0}),p(ae)!=="svelte-1vc0bn6"&&(ae.innerHTML=Xt),ot=n(e),U=o(e,"OL",{start:!0,"data-svelte-h":!0}),p(U)!=="svelte-pf9o4r"&&(U.innerHTML=Kt),pt=n(e),ne=o(e,"P",{"data-svelte-h":!0}),p(ne)!=="svelte-jc4u36"&&(ne.textContent=es),ct=n(e),ie=o(e,"P",{"data-svelte-h":!0}),p(ie)!=="svelte-np28y2"&&(ie.textContent=ts),dt=n(e),d(oe.$$.fragment,e),mt=n(e),pe=o(e,"P",{"data-svelte-h":!0}),p(pe)!=="svelte-ot2d0e"&&(pe.textContent=ss),rt=n(e),ce=o(e,"P",{"data-svelte-h":!0}),p(ce)!=="svelte-didr42"&&(ce.innerHTML=ls),ut=n(e),d(de.$$.fragment,e),ht=n(e),me=o(e,"P",{"data-svelte-h":!0}),p(me)!=="svelte-11840mj"&&(me.textContent=as),ft=n(e),re=o(e,"P",{"data-svelte-h":!0}),p(re)!=="svelte-1bil04w"&&(re.innerHTML=ns),gt=n(e),ue=o(e,"P",{"data-svelte-h":!0}),p(ue)!=="svelte-cc0ki8"&&(ue.innerHTML=is),vt=n(e),d(he.$$.fragment,e),Mt=n(e),fe=o(e,"P",{"data-svelte-h":!0}),p(fe)!=="svelte-130cjym"&&(fe.innerHTML=os),yt=n(e),d(ge.$$.fragment,e),bt=n(e),ye=o(e,"P",{}),ps(ye).forEach(s),this.h()},h(){f(v,"name","hf:doc:metadata"),f(v,"content",ws),f(T,"class","warning"),f($,"class","warning"),f(M,"class","flex justify-center"),ve(M,"max-width","550px"),f(k,"class","alert alert-warning"),f(S,"class","alert alert-warning"),f(y,"class","flex justify-center"),ve(y,"max-width","550px"),f(b,"class","flex justify-center"),ve(b,"max-width","550px"),f(x,"class","flex justify-center"),ve(x,"max-width","550px"),f(w,"class","flex justify-center"),ve(w,"max-width","550px"),f(C,"class","flex justify-center"),ve(C,"max-width","550px"),f(U,"start","2")},m(e,t){Ms(document.head,v),l(e,be,t),l(e,Me,t),l(e,xe,t),m(j,e,t),l(e,we,t),m(H,e,t),l(e,Ce,t),l(e,T,t),l(e,Te,t),l(e,$,t),l(e,$e,t),m(D,e,t),l(e,ke,t),l(e,_,t),l(e,Se,t),l(e,L,t),l(e,Ue,t),l(e,I,t),l(e,je,t),l(e,J,t),l(e,He,t),l(e,P,t),l(e,De,t),l(e,E,t),l(e,_e,t),l(e,B,t),l(e,Le,t),m(R,e,t),l(e,Ie,t),l(e,V,t),l(e,Je,t),l(e,M,t),l(e,Pe,t),l(e,q,t),l(e,Ee,t),l(e,k,t),l(e,Be,t),m(A,e,t),l(e,Re,t),l(e,Z,t),l(e,Ve,t),l(e,G,t),l(e,qe,t),l(e,Y,t),l(e,Ae,t),l(e,F,t),l(e,Ze,t),m(Q,e,t),l(e,Ge,t),l(e,S,t),l(e,Ye,t),m(N,e,t),l(e,Fe,t),l(e,O,t),l(e,Qe,t),l(e,y,t),l(e,Ne,t),m(z,e,t),l(e,Oe,t),l(e,W,t),l(e,ze,t),l(e,b,t),l(e,We,t),l(e,x,t),l(e,Xe,t),l(e,w,t),l(e,Ke,t),l(e,X,t),l(e,et,t),l(e,C,t),l(e,tt,t),m(K,e,t),l(e,st,t),l(e,ee,t),l(e,lt,t),m(te,e,t),l(e,at,t),l(e,se,t),l(e,nt,t),l(e,le,t),l(e,it,t),l(e,ae,t),l(e,ot,t),l(e,U,t),l(e,pt,t),l(e,ne,t),l(e,ct,t),l(e,ie,t),l(e,dt,t),m(oe,e,t),l(e,mt,t),l(e,pe,t),l(e,rt,t),l(e,ce,t),l(e,ut,t),m(de,e,t),l(e,ht,t),l(e,me,t),l(e,ft,t),l(e,re,t),l(e,gt,t),l(e,ue,t),l(e,vt,t),m(he,e,t),l(e,Mt,t),l(e,fe,t),l(e,yt,t),m(ge,e,t),l(e,bt,t),l(e,ye,t),xt=!0},p:ms,i(e){xt||(r(j.$$.fragment,e),r(H.$$.fragment,e),r(D.$$.fragment,e),r(R.$$.fragment,e),r(A.$$.fragment,e),r(Q.$$.fragment,e),r(N.$$.fragment,e),r(z.$$.fragment,e),r(K.$$.fragment,e),r(te.$$.fragment,e),r(oe.$$.fragment,e),r(de.$$.fragment,e),r(he.$$.fragment,e),r(ge.$$.fragment,e),xt=!0)},o(e){u(j.$$.fragment,e),u(H.$$.fragment,e),u(D.$$.fragment,e),u(R.$$.fragment,e),u(A.$$.fragment,e),u(Q.$$.fragment,e),u(N.$$.fragment,e),u(z.$$.fragment,e),u(K.$$.fragment,e),u(te.$$.fragment,e),u(oe.$$.fragment,e),u(de.$$.fragment,e),u(he.$$.fragment,e),u(ge.$$.fragment,e),xt=!1},d(e){e&&(s(be),s(Me),s(xe),s(we),s(Ce),s(T),s(Te),s($),s($e),s(ke),s(_),s(Se),s(L),s(Ue),s(I),s(je),s(J),s(He),s(P),s(De),s(E),s(_e),s(B),s(Le),s(Ie),s(V),s(Je),s(M),s(Pe),s(q),s(Ee),s(k),s(Be),s(Re),s(Z),s(Ve),s(G),s(qe),s(Y),s(Ae),s(F),s(Ze),s(Ge),s(S),s(Ye),s(Fe),s(O),s(Qe),s(y),s(Ne),s(Oe),s(W),s(ze),s(b),s(We),s(x),s(Xe),s(w),s(Ke),s(X),s(et),s(C),s(tt),s(st),s(ee),s(lt),s(at),s(se),s(nt),s(le),s(it),s(ae),s(ot),s(U),s(pt),s(ne),s(ct),s(ie),s(dt),s(mt),s(pe),s(rt),s(ce),s(ut),s(ht),s(me),s(ft),s(re),s(gt),s(ue),s(vt),s(Mt),s(fe),s(yt),s(bt),s(ye)),s(v),h(j,e),h(H,e),h(D,e),h(R,e),h(A,e),h(Q,e),h(N,e),h(z,e),h(K,e),h(te,e),h(oe,e),h(de,e),h(he,e),h(ge,e)}}}const ws='{"title":"Spaces Dev Mode: Seamless development in Spaces","local":"spaces-dev-mode-seamless-development-in-spaces","sections":[{"title":"Spaces Dev Mode","local":"spaces-dev-mode","sections":[],"depth":2},{"title":"Interface","local":"interface","sections":[{"title":"SSH connection and VS Code","local":"ssh-connection-and-vs-code","sections":[],"depth":3},{"title":"Persisting changes","local":"persisting-changes","sections":[],"depth":3}],"depth":2},{"title":"Enabling Dev Mode","local":"enabling-dev-mode","sections":[],"depth":2},{"title":"Limitations","local":"limitations","sections":[{"title":"Docker Spaces","local":"docker-spaces","sections":[],"depth":3},{"title":"Example of compatible Dockerfiles","local":"example-of-compatible-dockerfiles","sections":[],"depth":3}],"depth":2},{"title":"Feedback","local":"feedback","sections":[],"depth":2}],"depth":1}';function Cs(wt){return rs(()=>{new URLSearchParams(window.location.search).get("fw")}),[]}class js extends us{constructor(v){super(),hs(this,v,Cs,xs,ds,{})}}export{js as component};
