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.1.tar.gz
(219.1 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file st_conceptmap_cs-1.0.2.1.tar.gz.
File metadata
- Download URL: st_conceptmap_cs-1.0.2.1.tar.gz
- Upload date:
- Size: 219.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
adb13021715a4f2cf28a6451f332dd3d507e827972e6342054942870f0572f20
|
|
| MD5 |
8d8c85940f2e5b27dec0365b724237ab
|
|
| BLAKE2b-256 |
0347f4c326814e147b9bdcfbf1e37d06b3aec77251734e4b81c1d4f0dd1f184a
|
File details
Details for the file st_conceptmap_cs-1.0.2.1-py3-none-any.whl.
File metadata
- Download URL: st_conceptmap_cs-1.0.2.1-py3-none-any.whl
- Upload date:
- Size: 219.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
002505e9073ef66a84d762f7f963e78dea7d39b54661aa9e18e5b63b1ed2880c
|
|
| MD5 |
0ae7819179a64eda594dbca86b2277ef
|
|
| BLAKE2b-256 |
5ca4e193ab75cb99e8912cb15ac59de955684f0430846ad58bcc05a80ca7d475
|