Workspace | Creating a Publication

To share your work with peers or to feature it on your profile page, you can create a publication from a workspace and control how others can find it.
To create a publication
  1. Open your workspace.
  2. Select the Share button in the top right corner.
  3. Under Publish your workspace, select the notebook file you want to publish.
  4. Select Publish.
Your notebook will be re-executed from top to bottom to ensure reproducibility, and the rendered notebook will become available through a unique link. If you click this link, a new tab opens up with this publication; this is also how readers of your work will see it.
Next, from the same "Share" pane, you can share your publication: publicly, with specific people, or with all the members in your group (if the workspace was created in group context). You can also feature publicly available publications on your DataCamp profile pages, which makes them appear here:
Example of our CTO, Dieter De Mesmaeker's profile page

Resolving errors

If an error was encountered in your code while rerunning your notebook, the publication will fail. In the Publishing side pane, you can click View logs to see exactly what went wrong so you can correct your notebook and try again.
Note: If your notebook uses additional packages on top of the default set of packages that are available in Workspace by default, you should make sure to install these additional packages at the top of your notebook.
This is necessary because the publication of a notebook happens in a brand-new Workspace session, that does not have your additional packages available anymore. If you do the installs at the top of the notebook, the first thing that happens when the notebook is rerun from top to bottom is installing these additional dependencies.
Read Working with packages to learn more about how to install and use additional packages in your notebook.

One publication per workspace

For every workspace, you can only create a single publication. It is currently not possible to generate two distinct publications from the same workspace. If you have more than one notebook in your workspaces, you'll be able to select which notebook you want to create a publication from.

Updating a published workspace

If you made changes to your workspace after publishing, these changes are not automatically reflected in the publication. For the changes to ripple through to your publication, open up the "Share" pane again and hit the Update button. The URL of the updated publication as well as its sharing settings are preserved.