Skip to main content

Streamlit component based on Cytoscape.js that allows for creation and editing of concept maps

Project description

st-conceptmap-cs

Streamlit component based on Cytoscape.js that allows for creation and editing of concept maps

Installation instructions

pip install st-conceptmap-cs

Usage instructions

import streamlit as st 
from conceptmap_component import conceptmap_component, parse_contextmap

cm_data = {
    "elements": [
        { "data": { "id": "a", "label": "Node A" } },
        { "data": { "id": "b", "label": "Node B" } },
        { "data": { "source": "a", "target": "b", "label": "A to B" } }
    ]
}

st.header("Scaffolding")

st.subheader("Task 1")
st.write("Create a concept map!")

submit_requested = st.button("Submit")

cm_response = conceptmap_component(cm_data=cm_data, submit_request=submit_requested, key="task_1")

if cm_response:
    st.write(parse_contextmap(cm_response))
    st.markdown("---")

    st.subheader("Task 2")
    st.write("Response: ")
    st.write("Make changes in your concept map based on the response")
    conceptmap_component(cm_data=cm_response, key="task_2")

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

st_conceptmap_cs-1.0.0.tar.gz (3.3 kB view details)

Uploaded Source

Built Distribution

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

st_conceptmap_cs-1.0.0-py3-none-any.whl (3.9 kB view details)

Uploaded Python 3

File details

Details for the file st_conceptmap_cs-1.0.0.tar.gz.

File metadata

  • Download URL: st_conceptmap_cs-1.0.0.tar.gz
  • Upload date:
  • Size: 3.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.3

File hashes

Hashes for st_conceptmap_cs-1.0.0.tar.gz
Algorithm Hash digest
SHA256 2496dcf3e6ae648a361df5debec4006d29ce2207026b4435a1d728c6486f8c36
MD5 40c764beaf282c58018289fb1e011de7
BLAKE2b-256 47fe3af5003e4cfb58362b3bceb161c7d918141389c1419cd9e80e25e35623fe

See more details on using hashes here.

File details

Details for the file st_conceptmap_cs-1.0.0-py3-none-any.whl.

File metadata

File hashes

Hashes for st_conceptmap_cs-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 40ea111dbb91eb1b0ecfe0aef1662b1a2a28ed1141eb513592c2ce6033cb7088
MD5 cb14d6ad9acf7cd713b98213ecb9a8eb
BLAKE2b-256 5be824da567804cd4d5765ac81bd8c3427d555c820df9ca0d578e3e9997315a2

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