Share and export notebook files

更新时间:
复制 MD 格式

You can export notebook files to various formats for local viewing or share them directly with other users.

Background

DSW supports exporting notebook files to the following formats:

  • AsciiDoc: .asciidoc file

  • HTML: .html file

  • LaTeX: .tex file

  • Markdown: .md file

  • PDF: .pdf file

  • reStructuredText: .rst file

  • executable script: .py file

  • Reveal.js slides: .html file

Procedure

  1. Go to the development environment of a DSW instance.

    1. Log on to the PAI console.

    2. In the left-side navigation pane, click Workspaces. On the Workspaces page, click the name of the workspace that you want to manage.

    3. In the upper-left corner of the page, select the region where you want to use PAI.

    4. In the left-side navigation pane, choose Model Training > Data Science Workshop (DSW).

    5. Optional: On the Data Science Workshop (DSW) page, enter the name of a DSW instance or a keyword in the search box to search for the DSW instance.

    6. Click Open in the Actions column of the instance.

  2. Share or export a notebook file.

    • Export a notebook file

      1. Open the notebook file that you want to export.

      2. In the top menu bar, choose File > Save and Export Notebook As..., and then select the desired format. Available export formats include AsciiDoc, HTML, LaTeX, Markdown, PDF, Qtpdf, Qtpng, reStructuredText, executable script, Reveal.js slides, and Webpdf.

        Note

        The available export formats depend on your nbconvert configuration. For more information, see the official nbconvert documentation.

    • Share a notebook file

      1. On the Notebook tab, right-click the notebook file to share, or open it and click Share in the upper-right corner.

      2. Click Copy to share the file with other users.

        The shared link is a static snapshot of the .ipynb file. Updates made to the file after sharing will not appear on the shared page. The link is valid for 24 hours. After it expires, you must generate a new one.