Pluto notebooks are stored as .jl files on your computer, and Pluto needs to know the exact location of each file to open, save, and manage it.
.jl
When you create a new notebook, the notebook is stored temporarily in the ~/.julia/pluto_notebooks/ folder with a random name (something like Wild experiment 4.jl). This is a hidden folder, and we recommend saving your notebooks somewhere else (like your Documents folder) if you want to keep your work.
~/.julia/pluto_notebooks/
Wild experiment 4.jl
The .jl extension
The .jl extension is used because Pluto notebooks are valid Julia files – you can run them as Julia scripts, or use the include function in the REPL to start a REPL session with the notebook.
include
You are free to use a different extension (like .plutojl), the extension is not required to open the file.
.plutojl
First, go to the Pluto main menu. Now you can type a notebook path in the textbox, and press Enter or click the “Open” button. You would need to enter the full path of the notebook into the blue bow. While you type, there will be autocompletion suggestions with folders and files.
Finding file paths on your computer
To open a notebook, Pluto needs to know the full path of your .jl file — this is the complete address that tells your computer exactly where the file is located. The format of file paths differs depending on your operating system:
On Windows:
C:\Users\fons\Documents\my_notebook.jl
On macOS:
/
/Users/fons/Documents/my_notebook.jl
On Ubuntu (and other Linux distributions):
/home/fons/Documents/my_notebook.jl
It would be really nice if you could just pick the notebook file from your file browser, instead of having to type the path. But this is not possible, because Pluto is a web application, which does not have access to your file system for security reasons. See this issue. BUT this feature is possible in the Pluto Desktop app (WIP)
When you launch Pluto for the second time, your recent notebooks will appear in the main menu. You can click on them to continue where you left off.
To open this temporary folder
You can quickly navigate to the temporary notebooks folder by running this command in Julia:
run(`open ~/.julia/pluto_notebooks/`) # macOS run(`explorer ~/.julia/pluto_notebooks/`) # Windows run(`xdg-open ~/.julia/pluto_notebooks/`) # Linux
You can use Pluto to open a notebook from the web, using the URL of the notebook file. First, copy the URL of the notebook file. This URL probably ends with .jl. For example:
https://github.com/JuliaPluto/featured/blob/main/src/basic/turtles.jl
Next, go to the Pluto main menu. Now you can paste the URL in the textbox, and press Enter or click the “Open” button.
The notebook will open in “Safe Preview” mode, which means that no code will be executed until you give permission.
You can copy the complete contents of a .jl Pluto notebook file, and open it with Pluto. With the contents of a notebook file in your clipboard, go to the Pluto main menu. Now simply paste the contents anywhere on the page using Ctrl+V or Cmd+V, and it will be opened as a new notebook.
Ctrl+V
Cmd+V
The path of your current notebook is displayed at the top of the Pluto interface. You can click on it to change the path — this allows you to:
After typing a new path, press Enter or click the save button to confirm the change. The notebook will be moved or renamed accordingly.
On the bottom of the Pluto main menu, you will find a large collection of featured notebooks – notebooks written by the Julia community, featured by the Pluto developers. These notebooks are a great resource to get inspired about new ways to use Julia and Pluto!
Click on any featured notebook to read it. This will instantly load the notebook (prerendered on our servers), and interactive elements will work (this is done using PlutoSliderServer.jl). If you want to change code and run the notebook, simply click the “Edit or run” button in the top right of the screen. This will make a copy of the notebook on your computer that you can edit.