Skip to main content
Chemistry LibreTexts

15: Embedding Jupyter Code

  • Page ID
    135360
  • 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.

    Jupyter.png

    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

    Slide2.PNG

    Then select "EmbedJupyter" template.

    Slide3.PNG

    The template box will be added.

    Slide4.PNG

    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.

    Slide5.PNG

    Step 4: Save and Execute

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

    Slide6.PNG

    See https://libretexts.org/advanced.html for example.