Use Pluto without internet

I want to use the Pluto in the internal computer without internet.

using Pluto
Pluto.run()

The Pluto start slowly, the Loading dialog box is not show, and the new notebook can’t be created. How to use the Pluto without internet?

3 Likes

Hi cephied,

Pluto (currently) needs internet because some javascript script need to be loaded from cdn.jsdelivr.net.

This gist from this issue might help you.

1 Like

The offline script can’t operate successfullly.

$)─> julia offline_pluto.jl 
┌ Warning: No match found for line: ~/.julia/packages/Pluto/D9HrI/frontend/common/Binder.js:        fetch(`https://cdn.jsdelivr.net/gh/fonsp/pluto-usage-counter@1/binder-start.txt?skip_sw`).catch(() => {})
└ @ Main ~/software/offline_pluto.jl:34
┌ Warning: No match found for line: ~/.julia/packages/Pluto/D9HrI/frontend/sw.js:const allowList = ["www.gstatic.com", "fonts.gstatic.com", "fonts.googleapis.com", "cdn.jsdelivr.net", "cdnjs.cloudflare.com", "unpkg.com"]
└ @ Main ~/software/offline_pluto.jl:34
┌ Warning: No match found for line: ~/.julia/packages/Pluto/D9HrI/frontend/components/CellOutput.js:                path: (mode) => `https://cdn.jsdelivr.net/npm/codemirror@5.60.0/mode/${mode}/${mode}.min.js`,
└ @ Main ~/software/offline_pluto.jl:34
┌ Warning: No match found for line: ~/.julia/packages/Pluto/D9HrI/frontend/components/Editor.js:            fetch(`https://cdn.jsdelivr.net/gh/fonsp/pluto-usage-counter@1/article-view.txt?skip_sw`).catch(() => {})
└ @ Main ~/software/offline_pluto.jl:34
┌ Warning: No match found for line: 
└ @ Main ~/software/offline_pluto.jl:34
ERROR: LoadError: UndefVarError: here not defined
Stacktrace:
 [1] top-level scope
   @ ~/software/offline_pluto.jl:45
in expression starting at ~/software/offline_pluto.jl:45
here

So what is the work around?

1 Like

Pluto without internet is working for me.

I am running Julia 1.7.2 and Pluto v0.19.0 completely offline (without internet) with no problems - thank you Pluto developers for the awesome work you are doing!

1 Like