Shared Files

Files and folders published (shared) to CoCalc’s share server are viewable by the public with no login required.

Viewing Files on the Share Server

To see CoCalc files that people have shared, browse to You can search for text in the title and contents of shared files using the search box at upper right. You can sort the list of files by any of the columns listed, in increasing or decreasing order, by clicking in the column headings.


For your convenience, note the input box at the top of the browsable documents list: “Share what you create in CoCalc or paste a URL from anywhere on the web of a notebook, GitHub repo, or markdown file”.

share server home page

search and sort shared files at share server home page

There is also a preview at the CoCalc home page, allowing people who are just learning about CoCalc to view a sample of shared files:

share server preview at CoCalc home page

preview of shared files on CoCalc home page

When you select a shared folder, you get a view of the contents. Click “Edit” to copy a shared file or folder to a project that you own or collaborate on.

share server showing shared folder "k3d"

listing of shared folder “k3d”

Publishing Files

You can make individual files and folders public. First, do either of the following:

  • With the file open, click the lock icon lock at upper right. Note: if you see the bullhorn icon bullhorn instead of the lock, that means your file is already shared; you could click it to change sharing settings.

Lock icon at upper right of file view showing file is not published

click lock icon to enter file-sharing dialog

Bullhorn icon at upper right of file view showing file is published

lock is replaced by bullhorn if file is already shared

  • In the Files listing for your project, check the box in the leftmost column for your file, and click public Share. You can also select more than one file in order to share them together (e.g. an HTML page that includes images)

After either of these steps, you can see the “Share” dialog. You may enter a description for the file being shared, then click Make item public and your file is shared.

In addition to the above settings, you may specify an optional public file name. Setting this name provides much nicer URL’s for shared public documents. See Vanity URLs below to learn more.

Dialog which appears after clicking "Share"

Vanity URLs

You can now make it so  (e.g., lists all of the documents you have shared publicly.

CoCalc lets you assign a username, project names, and file names, so that you can create links to shared files that are easy to type and remember.

If you set all these you get a nice url, e.g.,

View Your File on the Share Server

After clicking Make item public as above, the public URL will be displayed under Shared publicly. You can click the Icon for external link button to open it at the share server.

With that link, a read-only copy of your file is available on the CoCalc share server. Files on the share server are indexed by Google unless you click the checkbox next to “Unlisted: Only allow those with a link to view this.”.

Starring Shared Files

You can star shared public files on the share server and see everything you starred here:

star a file on the share server

star a shared file so you can find it easily later

When you click “Star”, the count increases by one and the prompt changes to “Starred”. You can undo the operation by clicking “Starred”, after which the star count will decrease by one.

remove previously-added star from a file on the share server

click “starred” to remove a previously-added star

Sharing Rendered Notebooks

CoCalc’s share server offers a simple way to share fully-rendered Jupyter notebooks and certain other file types in gists and github repositories. All you need is a URL to the gist or repository you want to share. Rendered document sharing is done by means of URL proxying (see Notes on URL proxying below).

The URL schema is exactly the same as what uses, i.e., github/<github url> and gist/[github user]/[gist id].

Examples of Shared File Types

GitHub Repo

GitHub Gist

Differences Relative to nbviewer

The main differences are:

Notes on URL proxying

File Sharing Tips

  • You can share files from a free CoCalc account. At one time, the Internet access upgrade was required in order to share files; this is no longer the case.

  • If your document depends on auxiliary files (e.g., images embedded in a markdown file) make sure these auxiliary files are also published. A convenient way to do this is to have auxiliary files in a common folder and share that folder.

  • Serving raw files: you can host arbitrary html, etc. through the share server. Files can be viewed in “raw” form, i.e. without CoCalc controls, by opening in the share server and clicking “Raw” at upper right.

  • Interactive elements that use server processes, such as notebooks with Jupyter widgets and worksheets with Sage @interact, will not operate in files viewed from the share server. That is because documents on the share server are truly static. There is no kernel or Sage server running in the background to facilitate any sort of interactive computing. Controls that run completely in the browser work when served from the share server, for example 3d plots like this cardioid.