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.2.tar.gz (219.0 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.2-py3-none-any.whl (219.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: st_conceptmap_cs-1.0.2.tar.gz
  • Upload date:
  • Size: 219.0 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.2.tar.gz
Algorithm Hash digest
SHA256 8d5a1779597b6531c197b980e8f51519b9ce7ec3ba7895072b49e7e3007f3825
MD5 609bcbd85729b3c8406c1267e6ec6e41
BLAKE2b-256 1dab2682e11b1d0e7ee4a6945463a6ac20cb983b2a708c74285ff881498958f3

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for st_conceptmap_cs-1.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 7b9c0d5c81c767d70a0c79883472889a13b617926a9935c3d838b23e0dae8d73
MD5 5e47531d2bfbb224a31b1d49325ed79f
BLAKE2b-256 ede3cfa0057e92043da518e507530e40f071e1083045337badc7fd333ae61865

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