TensorFlow Jupyter icon

TensorFlow Jupyter

TensorFlow + Jupyter Notebook on the edge

Automation Apache-2.0
TensorFlow Jupyter illustration

What is this?

TensorFlow Jupyter gives you a full machine learning development environment directly on your edge device. It combines TensorFlow (Google’s ML framework) with Jupyter Notebook (an interactive coding environment you use in a web browser). You can train models, test them against live data, and deploy them — all without sending data to the cloud.

Open a browser, write Python code in cells, run it, and see results instantly. It’s the same workflow data scientists use in the cloud, but running locally on the edge hardware where the data lives.

Example: how a factory uses it

A reliability engineer wants to predict bearing failures from vibration data. She opens Jupyter in her browser, loads two weeks of historical vibration readings from the local database, and trains a TensorFlow model to distinguish “healthy” from “degrading” patterns. She tests it against yesterday’s data — it correctly flags the bearing that failed this morning. Now she deploys that model as a live inference service on the same edge device, getting predictions in real time without any data ever leaving the plant network.

Network Topology

graph LR
    subgraph Data Sources
        VLOGS[VictoriaLogs
historical logs] MQTT[MQTT Broker
live sensor data] end subgraph Edge Gateway JUPYTER[TensorFlow Jupyter
:8888 Notebook UI] MODEL[(Trained Model
SavedModel format)] end subgraph Downstream NR[Node-RED
inference integration] GF[Grafana
prediction metrics] end VLOGS -->|training data| JUPYTER MQTT -->|live features| JUPYTER JUPYTER --> MODEL MODEL -->|predictions| NR NR -->|OTLP metrics| GF

Import this app

Paste this into your Margo manager to import the app:

public.ecr.aws/g2n4p2m7/belden-margo:1.1.2_tf-jupyter-margo-manifest

Run: oras pull public.ecr.aws/g2n4p2m7/belden-margo:1.1.2_tf-jupyter-margo-manifest

Technical details

Deployment Profiles

  • PROPOSED — quadlet (WG-PROPOSAL-02)

    Systemd-native deployment using Podman Quadlet. Supports amd64.

Application Description (margo.yaml)

apiVersion: margo.org/v1alpha1
kind: ApplicationDescription
id: com-belden-tf-jupyter
metadata:
  name: "TensorFlow Jupyter"
  version: 1.1.1+tf-jupyter-margo-manifest
  description: "TensorFlow environment with Jupyter Notebook server for ML experimentation"
  catalog:
    application:
      tagline: "TensorFlow + Jupyter Notebook on the edge"
      tags:
        - "machine-learning"
        - "jupyter"
        - "tensorflow"
        - "edge-computing"
    organization:
      - name: "TensorFlow / Google"
        site: "https://www.tensorflow.org"

deploymentProfiles:
  - id: "quadlet-v1"
    type: "quadlet"
    description: "Systemd-native deployment using Podman Quadlet. Supports amd64."
    requiredResources:
      cpu:
        cores: 1
        architectures:
          - amd64
      memory: "1Gi"
      storage: "2Gi"
      interfaces:
        - type: ethernet
    components:
      - name: "tf-jupyter-quadlet"
        properties:
          repository: oci://public.ecr.aws/g2n4p2m7/belden-margo
          revision: 1.1.1_tf-jupyter-quadlet
          wait: true
          timeout: "5m0s"

parameters:
  notebookPort:
    value: 8888
    targets:
      - pointer: "NOTEBOOK_PORT"
        components:
          - tf-jupyter-quadlet

configuration:
  sections:
    - name: "Jupyter"
      settings:
        - parameter: notebookPort
          name: "Notebook Port"
          immutable: false
          schema: notebookPortSchema

  schema:
    - name: notebookPortSchema
      dataType: integer
      minValue: 1
      maxValue: 65535
      allowEmpty: false

Podman Quadlet Units

PROPOSED — quadlet (WG-PROPOSAL-02)

tf-jupyter.container

[Unit]
Description=TensorFlow Jupyter Notebook server
After=network-online.target

[Container]
Image=docker.io/tensorflow/tensorflow:2.21.0-jupyter
PublishPort=${NOTEBOOK_PORT}:8888
Exec=jupyter notebook --ip=0.0.0.0 --no-browser --allow-root --NotebookApp.token=

[Service]
Environment=NOTEBOOK_PORT=8888
Restart=always

[Install]
WantedBy=default.target

Container Images

Image Reference
docker.io/tensorflow/tensorflow:2.21.0-jupyter

License

Apache-2.0