> For the complete documentation index, see [llms.txt](https://docs.overleaf.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.overleaf.com/accounts-and-security/overleaf-labs/live-experiments.md).

# Live Experiments

Current experiments available via the Labs program.

{% hint style="danger" %}
Labs experiments are provided as-is, without any guarantee of stability. We recommend avoiding them for critical or deadline-sensitive projects.
{% endhint %}

These experiments are not final features and may change or be removed. See our [Labs documentation page](https://docs.overleaf.com/accounts-and-security/overleaf-labs.md) for more information.

{% hint style="warning" %}
The following documentation may not reflect the experiment in its current form. We try to keep it as up to date as possible but some features change fast!
{% endhint %}

<details>

<summary><strong>Faster compiles: compile current page</strong></summary>

Speed up recompiles by only compiling the page(s) that are currently visible in the PDF preview, avoiding the need to re-process the whole document every time.

{% hint style="success" %}
Only available for users on premium plans.
{% endhint %}

### Current page compile mode

If you enable this experiment, "Current page" compile mode will be automatically enabled. The "Recompile" button will change to say "Compile page" and pressing it or using a keyboard shortcut to compile will only recompile the currently visible page(s).

If you scroll the PDF preview beyond the visible region, a new current page compile will automatically be triggered.

{% hint style="warning" %}
If you don't see this compile option, check that you're on a compatible compiler by going to Settings > Compiler.\
Currently available in pdfLaTeX with TeX Live versions 2025, 2026 or "rolling".
{% endhint %}

<figure><img src="https://3502988919-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FVetOkhFZmAC8QCQK0Pi7%2Fuploads%2FCZfA3Fondn2f8OS6QPT7%2Fimage.png?alt=media&amp;token=72810844-322c-47aa-96d9-10ad081cb2a7" alt="The Recompile menu dropdown, showing the option to switch the Default compile between &#x22;Whole document&#x22; and &#x22;Current page&#x22;"><figcaption></figcaption></figure>

This typically makes recompiles much faster, especially for long documents. However, there are currently some limitations with this experimental version:

* References that were added or edited in a .bib file will not be found.
* Labels added outside the visible region in the PDF will not be found.
* Errors introduced outside the visible region will not be reported.
* If the "Main document" is in a folder, current page compiles may not work as expected.

{% hint style="info" %}
To download or submit the PDF, you must compile the whole document.
{% endhint %}

Current page compile mode can be used in conjunction with other compile modes, such as "Skip images (draft mode)" and "Auto compile".

### Compiling the whole document

If you want to compile the whole document, you can:

* click the "Recompile the whole PDF" ↺ button next to the "Compile page" button
* or use the Recompile dropdown to switch the "Default compile" to "Whole document"

<figure><img src="https://3502988919-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FVetOkhFZmAC8QCQK0Pi7%2Fuploads%2Fw3J8GZtJAwmBbj4yAhox%2Fimage.png?alt=media&amp;token=c5ad0abc-ecd4-4635-90a3-7cc876c3323d" alt="The &#x22;Recompile the whole PDF&#x22; button is shown next to the &#x22;Compile page&#x22; button"><figcaption></figcaption></figure>

{% hint style="info" %}
Have a suggestion about this feature? We really appreciate your [feedback](https://forms.gle/5yqVhy6QiUjXiLey6).
{% endhint %}

</details>

<details>

<summary><strong>Visual Markdown Editing</strong></summary>

Write in markdown and preview it visually. Create a `.md` file and toggle between **Code** and **Visual** to edit either as plain text or as a rendered document.

{% stepper %}
{% step %}

#### Create or upload a .md file

Click the **New file** button and change the file type to `.md` or choose **Upload** to add an existing file.

<figure><picture><source srcset="https://3502988919-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FVetOkhFZmAC8QCQK0Pi7%2Fuploads%2FHsdk2p0Y6yDwvzin4U40%2FScreenshot%202026-08-21%20at%2011.13.36.png?alt=media&amp;token=b4c9f3fa-1a36-4dc7-8796-ebad170e9f80" media="(prefers-color-scheme: dark)"><img src="https://3502988919-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FVetOkhFZmAC8QCQK0Pi7%2Fuploads%2FCP1xvUFQNr59QGlB9GSz%2FScreenshot%202026-08-21%20at%2011.14.00.png?alt=media&amp;token=11af11dd-07db-4b21-bd9f-f647453be2f3" alt="The Add files menu showing a new file being created called demo.md. The Upload options second in the sidebar menu." width="375"></picture><figcaption></figcaption></figure>

{% hint style="info" %}
You can also ask the AI assistant to generate a markdown file on your behalf.
{% endhint %}
{% endstep %}

{% step %}

#### Select the Visual editor

Choose the Visual editor to preview the styling of `.md` file. You can edit from either mode.

<figure><picture><source srcset="https://3502988919-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FVetOkhFZmAC8QCQK0Pi7%2Fuploads%2F9Jc9oNyw7aFydqWlqk0N%2FScreen%20Recording%202026-08-25%20at%2010.31.16.gif?alt=media&amp;token=18733ff2-095e-4eda-b302-d3536069a6ee" media="(prefers-color-scheme: dark)"><img src="https://3502988919-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FVetOkhFZmAC8QCQK0Pi7%2Fuploads%2FIjBDBdT4caj7X170WMxS%2FScreen%20Recording%202026-08-25%20at%2010.30.30.gif?alt=media&amp;token=c78ff2d7-3caa-462b-a413-f20f25d338d9" alt="Swapping back and forth between Code and Visual mode at the top of the editor. When switched to Visual it switches from pure code to showing some text styling reflected." width="375"></picture><figcaption></figcaption></figure>
{% endstep %}
{% endstepper %}

{% hint style="info" %}
Have a suggestion about this feature? We really appreciate your [feedback](https://forms.gle/7GDijJss8JVcPmow6).
{% endhint %}

#### Example

Because LLMs work well with `.md` files you can ask them to edit on your behalf. In this example, the AI assistant is crossing off the tasks under the Bibliography section. Those task are then modified to have strikethrough styling.

<figure><picture><source srcset="https://3502988919-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FVetOkhFZmAC8QCQK0Pi7%2Fuploads%2F3HoUSFdZaEL1rBj0JKkG%2F2026-08-21_10-52-10.png?alt=media&amp;token=1ee8f302-f0e5-415e-9f10-0fe67feeb70b" media="(prefers-color-scheme: dark)"><img src="https://3502988919-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FVetOkhFZmAC8QCQK0Pi7%2Fuploads%2Fa8zrbZWe3nQH0ifT4rJB%2FVisual%20MD%20-%20light.png?alt=media&amp;token=de1b26b1-d38f-4f23-ba64-faba9e5f689c" alt="A Science Textbook Example open to a supplemental TODO list markdown file. The AI assistant panel is open with the prompt: Cross off the tasks under the Bibliography heading in my TODO list."></picture><figcaption></figcaption></figure>

</details>

<details>

<summary><strong>Command palette</strong></summary>

Get all your favorite commands (like recompiling, searching the file tree, or changing the view mode) right from your keyboard.

{% stepper %}
{% step %}

#### Press Ctrl+P /Cmd-P to bring up the Command palette

This will open a floating command window.
{% endstep %}

{% step %}

#### Search for a command or file

Start typing to search for the command you want. There are a few command groups:

* **File:** commands that have to do with the file tree
* **View:** commands to manipulate the way the editor looks
* **Insert:** commands to add something in your code like a table, link, or citation

It also searches your file tree for matches so you can swap files.

{% hint style="info" %}
Have a suggestion about this feature like a missing command? We really appreciate your [feedback](https://forms.gle/7GDijJss8JVcPmow6).
{% endhint %}

<figure><img src="https://3502988919-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FVetOkhFZmAC8QCQK0Pi7%2Fuploads%2FerzZjUiMjVjcC0MSdqSO%2FScreen%20Recording%202026-08-14%20at%2010.13.33.gif?alt=media&amp;token=755d3cc8-db1f-470b-ab1e-5a10845af807" alt="The command palette pops up with a list of various commands to choose from. The user searches for and selects Settings. The settings menu pops up." width="563"><figcaption></figcaption></figure>
{% endstep %}

{% step %}

#### Hit enter to execute

Confirm your command selection by hitting the enter key. The palette will close automatically and perform the chosen command.
{% endstep %}
{% endstepper %}

</details>

<details>

<summary><strong>BibTeX visual editor</strong></summary>

The BibTeX visual editor is an in-editor panel that lets you view, create, edit, and delete bibliography (.bib) file entries without needing to write raw BibTeX code.

## Managing your entry list

The entry list shows all your parsed BibTeX entries in a simple table. You can sort the list by key, type, author, title, or year to find exactly what you're looking for.

### Adding and editing entries

To add a new reference, just click the Add entry button. If you want to change an existing one, click on its row to open the entry form. This form includes all the standard BibTeX fields you might need.

### Importing references

You can easily bring in new data by clicking the Import button. You can either paste raw BibTeX text or upload a file, and we'll merge those entries into your current project.

### Deleting entries

If you need to tidy up your file, you can delete multiple entries at once using the checkboxes:

* **Select individual entries**: Use the checkbox next to any row.
* **Select everything on a page**: Click the checkbox in the header. If you've only selected a few items, clicking this will select the rest of the page for you.

When you've selected your entries, a Delete button will appear in the toolbar. Click it to remove all selected entires.

{% hint style="success" %}
Your selections stay active even when you navigate to a different page.
{% endhint %}

## Permissions

Your ability to edit depends on your project permissions. If you have Owner or Collaborator (with edit access) status, you can add, change, or delete entries. Read-only users can see the list but won't be able to make changes.

</details>

<details>

<summary><strong>Python Script Runner</strong></summary>

The Python Script Runner lets you write and run Python scripts directly in your Overleaf project. Any files your script generates—figures, CSVs, or other outputs—are saved to the file tree and are available to use in your LaTeX document.

## Activate the Python Script Runner

To use the Python Script Runner, open any `.py` file from your project's file tree. The editor switches to Python mode and a **Run** button appears.

If your project doesn't have a `.py` file yet, create one using the **New file** button in the file tree.

## Write and run a script

1. Open a `.py` file from the file tree.
2. Write your Python code in the editor.
3. Select **Run** to execute the script.

To stop a script while it's running, select **Stop**.

## Understand the output panel

When you run a script, the output panel opens below the editor. It shows:

* **Standard output:** text printed by your script, such as the result of `print()` statements
* **Errors:** if your script fails, the output panel shows what went wrong. There are two types:
  * **Environment errors:** for example, a package that isn't available in the runner. Check the list of [supported packages](https://pyodide.org/en/stable/usage/packages-in-pyodide.html) before importing.
  * **Code errors:** syntax mistakes or runtime errors in your script, such as a `NameError` or `TypeError`

## Use files from the file tree as inputs

Your script can read files already in your project—for example, a `.csv` you've uploaded:

```python
import csv

with open("data.csv") as f:
    reader = csv.reader(f)
    for row in reader:
        print(row)
```

## Save output files to the file tree

Any files your script writes are saved to the project file tree automatically. For example, a figure saved with `plt.savefig("output.png")` will appear in the file tree and can be included in your LaTeX document using `\includegraphics{output.png}`.

## Supported packages and Python version

The Python Script Runner uses [Pyodide](https://pyodide.org/en/stable/usage/packages-in-pyodide.html) 0.29.3, which runs Python 3.13.2. A full list of supported packages is available on the [Pyodide packages page](https://pyodide.org/en/stable/usage/packages-in-pyodide.html).

## Known limitations

* Scripts run in your browser using your local system resources. Large or computationally expensive scripts may be slow or cause the tab to become unresponsive.
* Only packages available in Pyodide are supported. Packages that require native code or are not in the Pyodide distribution cannot be installed.

## Give feedback

The Python Script Runner is an early experiment and your feedback helps shape where it goes. Share what's working, what isn't, and what you'd like to see using our [feedback survey](https://forms.gle/RSQTZWfFd5AvzZX4A).

If you think the experiment has caused data loss or a serious issue, please also [contact Support](https://www.overleaf.com/contact) directly.

## Leave the experiment

You can leave this experiment at any time from the [Labs page](https://www.overleaf.com/labs/participate). Your projects and settings will not be affected.

</details>

<details>

<summary><strong>Rolling TeX Live releases (advanced)</strong></summary>

This experimental version is primarily for testing changes to TeX Live, packages, and previewing new accessibility features before they’re compiled into our annual TeX Live release.

Note that these images change month to month and are untested by our team. Important projects should continue to be built on our yearly release to avoid issues that may occur when the monthly build changes.

{% hint style="info" %}
Once you have joined, you will need to [select a the rolling TeX Live version](https://docs.overleaf.com/getting-started/recompiling-your-project/selecting-a-tex-live-version-and-latex-compiler.md).
{% endhint %}

Find out more on our [TeX Live documentation page](https://docs.overleaf.com/troubleshooting-and-support/tex-live.md).

</details>


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.overleaf.com/accounts-and-security/overleaf-labs/live-experiments.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
