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.1.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.1-py3-none-any.whl (3.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: st_conceptmap_cs-1.0.1.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.1.tar.gz
Algorithm Hash digest
SHA256 22dad4e05ef28cd930f17ad8fadd6a2ede11f23934e52808f9bec3578cffe80f
MD5 1a82f1ea7e75846dba6c929fff1b7e67
BLAKE2b-256 b6b1ab6d7009efd34b8d9c31125216c27c0558a2427acccd86162674f3b21cf8

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for st_conceptmap_cs-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 95ad6a0f0ef61b9c399a7b2bacb3f5dfcb628fb2c81112f6c929cd788c5076a2
MD5 1f693a6a1daad9162f7bda084168da97
BLAKE2b-256 661240001d9ec712ac8f6a9b6a9b712e0652b390746e104bec76d87bfdd25427

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