Jupyter Notebook File

Q

What Is Jupyter Notebook file?

✍: FYIcenter.com

A

Jupyter Notebook file, is a JSON file used to record computer code, program result and embedded rich text elements (paragraph, equations, figures, links, etc.).

Here is a simple example of Jupyter Notebook, hello.ipynb:

{
  "cells": [
    {
      "metadata": {},
      "cell_type": "markdown",
      "source": "### \"Hello World\" Example"
    },
    {
      "metadata": {
        "trusted": true
      },
      "cell_type": "code",
      "source": "print(\"Hello World!\")",
      "execution_count": 4,
      "outputs": [
        {
          "output_type": "stream",
          "text": "Hello World!\n",
          "name": "stdout"
        }
      ]
    }
  ],
  "metadata": {
    "kernelspec": {
      "name": "python3",
      "display_name": "Python 3",
      "language": "python"
    },
    "language_info": {
      "name": "python",
      "version": "3.6.13",
      "mimetype": "text\/x-python",
      "codemirror_mode": {
        "name": "ipython",
        "version": 3
      },
      "pygments_lexer": "ipython3",
      "nbconvert_exporter": "python",
      "file_extension": ".py"
    }
  },
  "nbformat": 4,
  "nbformat_minor": 2
}

If you load the above Jupyter Notebook file on a Jupyter server, it will be rendered as the following.

Jupyter Notebook File - Simple Example
Jupyter Notebook File - Simple Example

Here is a more complex Jupyter Notebook example:

Jupyter Notebook File - Complex Example
Jupyter Notebook File - Complex Example

 

What Is JupyterHub

What Is Jupyter

Introduction to Jupyter

⇑⇑ Jupyter Tutorials

2021-12-23, 602🔥, 0💬