Skip to main content
Chemistry LibreTexts

4.2: Embedding Jupyter Code

  • Page ID
  • The Jupyter system is a power aspect to the LibreTexts platform.

    Embed a jupter code in four steps:

    Step 1: Set Meta-Tag

     Flip the "Embed Jupyter" meta tag on the page under page settings. You need to select which code you want active on this page. One one language per page for now.


    Step 2: Insert Jupyter Template

    You need to add the Jupyter template. You do this by selecting the Template section under "Elements" on the editing toolbar


    Then select "EmbedJupyter" template.


    The template box will be added.


    Step 3: Write Code

    Click on the "+" in upper left corner of the red DekiScriipt box to be able to insert python (or any other language) code.


    Step 4: Save and Execute

    You can execute the code. Via the green "run" button


    See for example.