import{s as K,n as Q,o as V}from"../chunks/scheduler.d6170356.js";import{S as X,i as Y,g as l,s as a,r as j,A as Z,h as r,f as n,c as i,j as W,u as E,x as _,k as D,y as ee,a as o,v as G,d as S,t as z,w as R}from"../chunks/index.fcd4cc08.js";import{H as q,E as te}from"../chunks/EditOnGithub.da2b595c.js";function ne(A){let s,k,y,v,u,w,h,F='<a href="https://jupyter.org/" rel="nofollow">Jupyter notebooks</a> are a very popular format for sharing code and data analysis for machine learning and data science. They are interactive documents that can contain code, visualizations, and text.',H,p,T,m,O="Under the hood, Jupyter Notebook files (usually shared with a <code>.ipynb</code> extension) are JSON files. While viewing these files directly is possible, it’s not a format intended to be read by humans. The Hub has rendering support for notebooks hosted on the Hub. This means that notebooks are displayed in a human-readable format.",x,f,U='<img src="https://huggingface.co/blog/assets/135_notebooks-hub/before_after_notebook_rendering.png" alt="Before and after notebook rendering"/>',C,b,B="Notebooks will be rendered when included in any type of repository on the Hub. This includes models, datasets, and Spaces.",L,c,P,d,I='<a href="https://colab.google/" rel="nofollow">Google Colab</a> is a free Jupyter Notebook environment that requires no setup and runs entirely in the cloud. It’s a great way to run Jupyter Notebooks without having to install anything on your local machine. Notebooks hosted on the Hub are automatically given a “launch in Google Colab” button. This allows you to open the notebook in Colab with a single click.',M,g,J,$,N;return u=new q({props:{title:"Jupyter Notebooks on the Hugging Face Hub",local:"jupyter-notebooks-on-the-hugging-face-hub",headingTag:"h1"}}),p=new q({props:{title:"Rendering Jupyter notebooks on the Hub",local:"rendering-jupyter-notebooks-on-the-hub",headingTag:"h2"}}),c=new q({props:{title:"Launch in Google Colab",local:"launch-in-google-colab",headingTag:"h2"}}),g=new te({props:{source:"https://github.com/huggingface/hub-docs/blob/main/docs/hub/notebooks.md"}}),{c(){s=l("meta"),k=a(),y=l("p"),v=a(),j(u.$$.fragment),w=a(),h=l("p"),h.innerHTML=F,H=a(),j(p.$$.fragment),T=a(),m=l("p"),m.innerHTML=O,x=a(),f=l("p"),f.innerHTML=U,C=a(),b=l("p"),b.textContent=B,L=a(),j(c.$$.fragment),P=a(),d=l("p"),d.innerHTML=I,M=a(),j(g.$$.fragment),J=a(),$=l("p"),this.h()},l(e){const t=Z("svelte-u9bgzb",document.head);s=r(t,"META",{name:!0,content:!0}),t.forEach(n),k=i(e),y=r(e,"P",{}),W(y).forEach(n),v=i(e),E(u.$$.fragment,e),w=i(e),h=r(e,"P",{"data-svelte-h":!0}),_(h)!=="svelte-3oolx1"&&(h.innerHTML=F),H=i(e),E(p.$$.fragment,e),T=i(e),m=r(e,"P",{"data-svelte-h":!0}),_(m)!=="svelte-1invhcr"&&(m.innerHTML=O),x=i(e),f=r(e,"P",{"data-svelte-h":!0}),_(f)!=="svelte-d4zk2v"&&(f.innerHTML=U),C=i(e),b=r(e,"P",{"data-svelte-h":!0}),_(b)!=="svelte-8yg2e9"&&(b.textContent=B),L=i(e),E(c.$$.fragment,e),P=i(e),d=r(e,"P",{"data-svelte-h":!0}),_(d)!=="svelte-1tymewh"&&(d.innerHTML=I),M=i(e),E(g.$$.fragment,e),J=i(e),$=r(e,"P",{}),W($).forEach(n),this.h()},h(){D(s,"name","hf:doc:metadata"),D(s,"content",oe)},m(e,t){ee(document.head,s),o(e,k,t),o(e,y,t),o(e,v,t),G(u,e,t),o(e,w,t),o(e,h,t),o(e,H,t),G(p,e,t),o(e,T,t),o(e,m,t),o(e,x,t),o(e,f,t),o(e,C,t),o(e,b,t),o(e,L,t),G(c,e,t),o(e,P,t),o(e,d,t),o(e,M,t),G(g,e,t),o(e,J,t),o(e,$,t),N=!0},p:Q,i(e){N||(S(u.$$.fragment,e),S(p.$$.fragment,e),S(c.$$.fragment,e),S(g.$$.fragment,e),N=!0)},o(e){z(u.$$.fragment,e),z(p.$$.fragment,e),z(c.$$.fragment,e),z(g.$$.fragment,e),N=!1},d(e){e&&(n(k),n(y),n(v),n(w),n(h),n(H),n(T),n(m),n(x),n(f),n(C),n(b),n(L),n(P),n(d),n(M),n(J),n($)),n(s),R(u,e),R(p,e),R(c,e),R(g,e)}}}const oe='{"title":"Jupyter Notebooks on the Hugging Face Hub","local":"jupyter-notebooks-on-the-hugging-face-hub","sections":[{"title":"Rendering Jupyter notebooks on the Hub","local":"rendering-jupyter-notebooks-on-the-hub","sections":[],"depth":2},{"title":"Launch in Google Colab","local":"launch-in-google-colab","sections":[],"depth":2}],"depth":1}';function ae(A){return V(()=>{new URLSearchParams(window.location.search).get("fw")}),[]}class re extends X{constructor(s){super(),Y(this,s,ae,ne,K,{})}}export{re as component};
