Skip to main content

Jupyter notebook integration for OpenConstruct — connect, sense, and build with agents

Project description

openconstruct-jupyter — Jupyter Integration for OpenConstruct

Connect OpenConstruct to your Jupyter notebooks in one line. Cell magic, widgets, fleet panels, and DataFrame-to-room conversion.

Part of SuperInstance OpenConstruct.

What This Gives You

  • Cell magic%%openconstruct --sense vision captures output as a sense shadow
  • DataFrame → Plato room — turn any pandas DataFrame into a knowledge graph
  • Python function → agent tooloc.from_function(greet, name="my_tool")
  • Fleet panel — inline widget showing discovered fleet nodes
  • Room viewer — visualize Plato room tiles and dependencies

Quick Start

# Load the extension
%load_ext openconstruct_jupyter

# Connect
import openconstruct_jupyter as oc
oc.connect(notebook=True)

Cell Magic

%%openconstruct --sense vision
# Cell output captured as a vision shadow

%%openconstruct --tick "analysis complete"
# Post a tick to the fleet

%%openconstruct --room my-analysis
# Create or load a Plato room

Python API

import pandas as pd

# DataFrame → room
df = pd.DataFrame({"x": [1, 2, 3], "y": [4, 5, 6]})
oc.from_dataframe(df, name="my_data")

# Function → agent tool
def greet(name):
    return f"Hello, {name}!"
oc.from_function(greet, name="greet_tool")

# REST API → agent resource
oc.from_api("https://api.example.com/data", name="external_data")

Installation

pip install openconstruct-jupyter

Testing

pytest tests/ -v

License

MIT

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

openconstruct_jupyter-0.1.0.tar.gz (10.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

openconstruct_jupyter-0.1.0-py3-none-any.whl (10.9 kB view details)

Uploaded Python 3

File details

Details for the file openconstruct_jupyter-0.1.0.tar.gz.

File metadata

  • Download URL: openconstruct_jupyter-0.1.0.tar.gz
  • Upload date:
  • Size: 10.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.12

File hashes

Hashes for openconstruct_jupyter-0.1.0.tar.gz
Algorithm Hash digest
SHA256 100cd0e113af3ce7af856a0dc3307a5ac4144c85ed29ea0124ac025830c23566
MD5 a857b04b951e039bb3a259fefef5abc5
BLAKE2b-256 a28466ce138b5a5067f9432abfc3593dfcf66fee88c1c32a4bd4e717c6f7a0fc

See more details on using hashes here.

File details

Details for the file openconstruct_jupyter-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for openconstruct_jupyter-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 8e39e99cf94ed2d0eaf5678290575e674505c55ea8c160632f380c2c46993c01
MD5 f7305d412587c7b16976be5babd50e5e
BLAKE2b-256 1ace08e8cdae3d8196a4ff5789458762e1141220c30c2d9a03b4cd3673c00a27

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page