File size: 1,489 Bytes
fc2088a
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
<!-- livebook:{"app_settings":{"access_type":"public","output_type":"rich","slug":"welcome"}} -->

# Livebook <3 Hugging Face

```elixir
Mix.install([
  {:kino, "~> 0.13"}
])
```

## Section

This is the source of a deployed notebook.
This notebook is static and simply renders the markdown content below.

```elixir
Kino.Markdown.new("""
Welcome to Livebook in Hugging Face!

This is a deployed notebook, which is also a perfect place to teach you
the ropes in using Livebook with Hugging Face.

## Getting started

First off, if you want to run your own copy of Livebook,
[check our tutorial](https://news.livebook.dev/livebook-inside-hugging-face-spaces-3LQaRi).
Once you clone the space, remember to set `LIVEBOOK_PASSWORD` as
an environment variable on your Space Settings page (a minimum of
12 digits is required).

If you are new to Elixir and Livebook, [head out to the Learn page](/learn)
(it requires a password), there you will find resources to get started
with both.

## Deploying notebooks

Livebook is fully collaborative and it enables you to deploy interactive
and collaborative apps just as well. All of your deployable notebooks will
be in the "public-apps" directory of your Spaces repository.

To deploy your own notebook on Hugging Face, you must click the
<i class="ri-livebook-deploy"></i> icon on the notebook sidebar, set a "Slug"
for the notebook, mark it as public and then drop its `.livemd` file into
the "public-apps" directory of your Spaces repo.
""")
```