-
Notifications
You must be signed in to change notification settings - Fork 207
/
quick_example.py
1 lines (1 loc) · 22.3 KB
/
quick_example.py
1
{"payload":{"allShortcutsEnabled":false,"fileTree":{"":{"items":[{"name":".vscode","path":".vscode","contentType":"directory"},{"name":"README.md","path":"README.md","contentType":"file"},{"name":"cell_renderer_class_example.py","path":"cell_renderer_class_example.py","contentType":"file"},{"name":"column_index.py","path":"column_index.py","contentType":"file"},{"name":"custom_css.py","path":"custom_css.py","contentType":"file"},{"name":"example.py","path":"example.py","contentType":"file"},{"name":"example_highlight_change.py","path":"example_highlight_change.py","contentType":"file"},{"name":"fixed_key_example.py","path":"fixed_key_example.py","contentType":"file"},{"name":"forms.py","path":"forms.py","contentType":"file"},{"name":"json_data.json","path":"json_data.json","contentType":"file"},{"name":"json_data.py","path":"json_data.py","contentType":"file"},{"name":"json_data_gridOptions.json","path":"json_data_gridOptions.json","contentType":"file"},{"name":"licensing_example.py","path":"licensing_example.py","contentType":"file"},{"name":"main_example.py","path":"main_example.py","contentType":"file"},{"name":"nested_grids.py","path":"nested_grids.py","contentType":"file"},{"name":"pinned_rows.py","path":"pinned_rows.py","contentType":"file"},{"name":"poetry.lock","path":"poetry.lock","contentType":"file"},{"name":"pyproject.toml","path":"pyproject.toml","contentType":"file"},{"name":"rich_cell_editor.py","path":"rich_cell_editor.py","contentType":"file"},{"name":"themes_and_pre_selection.py","path":"themes_and_pre_selection.py","contentType":"file"},{"name":"two_grids_example.py","path":"two_grids_example.py","contentType":"file"},{"name":"user_settings.py","path":"user_settings.py","contentType":"file"},{"name":"virtual_columns.py","path":"virtual_columns.py","contentType":"file"}],"totalCount":23}},"fileTreeProcessingTime":4.010763,"foldersToFetch":[],"reducedMotionEnabled":null,"repo":{"id":520152155,"defaultBranch":"main","name":"streamlit-aggrid-examples","ownerLogin":"PablocFonseca","currentUserCanPush":false,"isFork":false,"isEmpty":false,"createdAt":"2022-08-01T14:52:22.000Z","ownerAvatar":"https://avatars.githubusercontent.com/u/17606067?v=4","public":true,"private":false,"isOrgOwned":false},"symbolsExpanded":false,"treeExpanded":true,"refInfo":{"name":"main","listCacheKey":"v0:1659892424.247006","canEdit":false,"refType":"branch","currentOid":"3bb054f037e0fa5d20b368ab36a0839c0a84e758"},"path":"fixed_key_example.py","currentUser":null,"blob":{"rawLines":["import streamlit as st","import numpy as np","import pandas as pd","","from st_aggrid import AgGrid, GridOptionsBuilder","","@st.cache()","def get_data():"," df = pd.DataFrame("," np.random.randint(0, 100, 50).reshape(-1, 5), columns= list(\"abcde\")"," )"," return df","","st.subheader(\"Controling Ag-Grid redraw in Streamlit.\")","st.markdown(\"\"\"","The grid will redraw itself and reload the data whenever the key of the component changes. ","If ```key=None``` or not set at all, streamlit will compute a hash from AgGrid() parameters to use as a unique key. ","This can be simulated by changing the grid height, for instance, with the slider:","\"\"\")","","c1,_ = st.columns([3,2])","","height = c1.slider('Height (px)', min_value=100, max_value=800, value=400)","","st.markdown(\"\"\"","As there is no key parameter set, whenever the height parameter changes grid is redrawn. ","This behavior can be prevented by setting a fixed key on aggrid call (check the box below): ","\"\"\")","","use_fixed_key = st.checkbox(\"Use fixed key in AgGrid call\", value=False)","if use_fixed_key:"," key=\"'an_unique_key'\"","else:"," key=None","","st.markdown(f\"\"\"","However, blocking redraw, also blocks grid from rendering new data, unless the ```reload_data``` parameter is set to true. ","(note that grid return value shows new data, however as redraw is blocked grid does not show the new values)","\"\"\")","reload_data=False","c1,c2,_ = st.columns([1,2,1])","button = c1.button(\"Generate 10 new random lines of data\")","reload_data_option = c2.checkbox(\"Set reload_data as true on next app refresh.\", value=False)","","if button:"," from streamlit import legacy_caching as caching"," caching.clear_cache()"," if reload_data_option:"," reload_data=True","","","","","key_md = \", key=None\" if not key else f\",key={key}\"","st.markdown(f\"\"\"","Grid call below is:","```python","AgGrid(data, grid_options, {key_md}, reload_data={reload_data}, height={height})","```\"\"\")","","","","","","","data = get_data()","gb = GridOptionsBuilder.from_dataframe(data)","#make all columns editable","gb.configure_columns(list('abcde'), editable=True)","","#Create a calculated column that updates when data is edited. Use agAnimateShowChangeCellRenderer to show changes ","#gb.configure_column('row total', valueGetter='Number(data.a) + Number(data.b) + Number(data.c) + Number(data.d) + Number(data.e)', cellRenderer='agAnimateShowChangeCellRenderer', editable='false', type=['numericColumn'])","go = gb.build()","","","# Setting a fixed key for the component will prevent the grid to reinitialize when dataframe parameter change, simulated here ","# by pressing the button on the side bar. ","# Data will only be refreshed when the parameter reload_data is set to True","","if use_fixed_key:"," ag = AgGrid("," data, "," gridOptions=go, "," height=height, "," fit_columns_on_grid_load=True, "," key='an_unique_key',"," reload_data=reload_data"," )","else:"," ag = AgGrid("," data, "," gridOptions=go, "," height=height, "," fit_columns_on_grid_load=True"," )","","st.subheader(\"Returned Data\")","st.dataframe(ag['data'])","","st.subheader(\"Grid Options\")","st.write(go)"],"stylingDirectives":[[{"start":0,"end":6,"cssClass":"pl-k"},{"start":7,"end":16,"cssClass":"pl-s1"},{"start":17,"end":19,"cssClass":"pl-k"},{"start":20,"end":22,"cssClass":"pl-s1"}],[{"start":0,"end":6,"cssClass":"pl-k"},{"start":7,"end":12,"cssClass":"pl-s1"},{"start":13,"end":15,"cssClass":"pl-k"},{"start":16,"end":18,"cssClass":"pl-s1"}],[{"start":0,"end":6,"cssClass":"pl-k"},{"start":7,"end":13,"cssClass":"pl-s1"},{"start":14,"end":16,"cssClass":"pl-k"},{"start":17,"end":19,"cssClass":"pl-s1"}],[],[{"start":0,"end":4,"cssClass":"pl-k"},{"start":5,"end":14,"cssClass":"pl-s1"},{"start":15,"end":21,"cssClass":"pl-k"},{"start":22,"end":28,"cssClass":"pl-v"},{"start":30,"end":48,"cssClass":"pl-v"}],[],[{"start":0,"end":11,"cssClass":"pl-en"},{"start":1,"end":3,"cssClass":"pl-s1"},{"start":4,"end":9,"cssClass":"pl-en"}],[{"start":0,"end":3,"cssClass":"pl-k"},{"start":4,"end":12,"cssClass":"pl-en"}],[{"start":4,"end":6,"cssClass":"pl-s1"},{"start":7,"end":8,"cssClass":"pl-c1"},{"start":9,"end":11,"cssClass":"pl-s1"},{"start":12,"end":21,"cssClass":"pl-v"}],[{"start":8,"end":10,"cssClass":"pl-s1"},{"start":11,"end":17,"cssClass":"pl-s1"},{"start":18,"end":25,"cssClass":"pl-en"},{"start":26,"end":27,"cssClass":"pl-c1"},{"start":29,"end":32,"cssClass":"pl-c1"},{"start":34,"end":36,"cssClass":"pl-c1"},{"start":38,"end":45,"cssClass":"pl-en"},{"start":46,"end":47,"cssClass":"pl-c1"},{"start":47,"end":48,"cssClass":"pl-c1"},{"start":50,"end":51,"cssClass":"pl-c1"},{"start":54,"end":61,"cssClass":"pl-s1"},{"start":61,"end":62,"cssClass":"pl-c1"},{"start":63,"end":67,"cssClass":"pl-en"},{"start":68,"end":75,"cssClass":"pl-s"}],[],[{"start":4,"end":10,"cssClass":"pl-k"},{"start":11,"end":13,"cssClass":"pl-s1"}],[],[{"start":0,"end":2,"cssClass":"pl-s1"},{"start":3,"end":12,"cssClass":"pl-en"},{"start":13,"end":54,"cssClass":"pl-s"}],[{"start":0,"end":2,"cssClass":"pl-s1"},{"start":3,"end":11,"cssClass":"pl-en"},{"start":12,"end":15,"cssClass":"pl-s"}],[{"start":0,"end":92,"cssClass":"pl-s"}],[{"start":0,"end":117,"cssClass":"pl-s"}],[{"start":0,"end":81,"cssClass":"pl-s"}],[{"start":0,"end":3,"cssClass":"pl-s"}],[],[{"start":0,"end":2,"cssClass":"pl-s1"},{"start":3,"end":4,"cssClass":"pl-s1"},{"start":5,"end":6,"cssClass":"pl-c1"},{"start":7,"end":9,"cssClass":"pl-s1"},{"start":10,"end":17,"cssClass":"pl-en"},{"start":19,"end":20,"cssClass":"pl-c1"},{"start":21,"end":22,"cssClass":"pl-c1"}],[],[{"start":0,"end":6,"cssClass":"pl-s1"},{"start":7,"end":8,"cssClass":"pl-c1"},{"start":9,"end":11,"cssClass":"pl-s1"},{"start":12,"end":18,"cssClass":"pl-en"},{"start":19,"end":32,"cssClass":"pl-s"},{"start":34,"end":43,"cssClass":"pl-s1"},{"start":43,"end":44,"cssClass":"pl-c1"},{"start":44,"end":47,"cssClass":"pl-c1"},{"start":49,"end":58,"cssClass":"pl-s1"},{"start":58,"end":59,"cssClass":"pl-c1"},{"start":59,"end":62,"cssClass":"pl-c1"},{"start":64,"end":69,"cssClass":"pl-s1"},{"start":69,"end":70,"cssClass":"pl-c1"},{"start":70,"end":73,"cssClass":"pl-c1"}],[],[{"start":0,"end":2,"cssClass":"pl-s1"},{"start":3,"end":11,"cssClass":"pl-en"},{"start":12,"end":15,"cssClass":"pl-s"}],[{"start":0,"end":90,"cssClass":"pl-s"}],[{"start":0,"end":93,"cssClass":"pl-s"}],[{"start":0,"end":3,"cssClass":"pl-s"}],[],[{"start":0,"end":13,"cssClass":"pl-s1"},{"start":14,"end":15,"cssClass":"pl-c1"},{"start":16,"end":18,"cssClass":"pl-s1"},{"start":19,"end":27,"cssClass":"pl-en"},{"start":28,"end":58,"cssClass":"pl-s"},{"start":60,"end":65,"cssClass":"pl-s1"},{"start":65,"end":66,"cssClass":"pl-c1"},{"start":66,"end":71,"cssClass":"pl-c1"}],[{"start":0,"end":2,"cssClass":"pl-k"},{"start":3,"end":16,"cssClass":"pl-s1"}],[{"start":4,"end":7,"cssClass":"pl-s1"},{"start":7,"end":8,"cssClass":"pl-c1"},{"start":8,"end":25,"cssClass":"pl-s"}],[{"start":0,"end":4,"cssClass":"pl-k"}],[{"start":4,"end":7,"cssClass":"pl-s1"},{"start":7,"end":8,"cssClass":"pl-c1"},{"start":8,"end":12,"cssClass":"pl-c1"}],[],[{"start":0,"end":2,"cssClass":"pl-s1"},{"start":3,"end":11,"cssClass":"pl-en"},{"start":12,"end":16,"cssClass":"pl-s"}],[{"start":0,"end":125,"cssClass":"pl-s"}],[{"start":0,"end":108,"cssClass":"pl-s"}],[{"start":0,"end":3,"cssClass":"pl-s"}],[{"start":0,"end":11,"cssClass":"pl-s1"},{"start":11,"end":12,"cssClass":"pl-c1"},{"start":12,"end":17,"cssClass":"pl-c1"}],[{"start":0,"end":2,"cssClass":"pl-s1"},{"start":3,"end":5,"cssClass":"pl-s1"},{"start":6,"end":7,"cssClass":"pl-s1"},{"start":8,"end":9,"cssClass":"pl-c1"},{"start":10,"end":12,"cssClass":"pl-s1"},{"start":13,"end":20,"cssClass":"pl-en"},{"start":22,"end":23,"cssClass":"pl-c1"},{"start":24,"end":25,"cssClass":"pl-c1"},{"start":26,"end":27,"cssClass":"pl-c1"}],[{"start":0,"end":6,"cssClass":"pl-s1"},{"start":7,"end":8,"cssClass":"pl-c1"},{"start":9,"end":11,"cssClass":"pl-s1"},{"start":12,"end":18,"cssClass":"pl-en"},{"start":19,"end":57,"cssClass":"pl-s"}],[{"start":0,"end":18,"cssClass":"pl-s1"},{"start":19,"end":20,"cssClass":"pl-c1"},{"start":21,"end":23,"cssClass":"pl-s1"},{"start":24,"end":32,"cssClass":"pl-en"},{"start":33,"end":79,"cssClass":"pl-s"},{"start":81,"end":86,"cssClass":"pl-s1"},{"start":86,"end":87,"cssClass":"pl-c1"},{"start":87,"end":92,"cssClass":"pl-c1"}],[],[{"start":0,"end":2,"cssClass":"pl-k"},{"start":3,"end":9,"cssClass":"pl-s1"}],[{"start":4,"end":8,"cssClass":"pl-k"},{"start":9,"end":18,"cssClass":"pl-s1"},{"start":19,"end":25,"cssClass":"pl-k"},{"start":26,"end":40,"cssClass":"pl-s1"},{"start":41,"end":43,"cssClass":"pl-k"},{"start":44,"end":51,"cssClass":"pl-s1"}],[{"start":4,"end":11,"cssClass":"pl-s1"},{"start":12,"end":23,"cssClass":"pl-en"}],[{"start":4,"end":6,"cssClass":"pl-k"},{"start":7,"end":25,"cssClass":"pl-s1"}],[{"start":8,"end":19,"cssClass":"pl-s1"},{"start":19,"end":20,"cssClass":"pl-c1"},{"start":20,"end":24,"cssClass":"pl-c1"}],[],[],[],[],[{"start":0,"end":6,"cssClass":"pl-s1"},{"start":7,"end":8,"cssClass":"pl-c1"},{"start":9,"end":21,"cssClass":"pl-s"},{"start":22,"end":24,"cssClass":"pl-k"},{"start":25,"end":28,"cssClass":"pl-c1"},{"start":29,"end":32,"cssClass":"pl-s1"},{"start":33,"end":37,"cssClass":"pl-k"},{"start":38,"end":51,"cssClass":"pl-s"},{"start":45,"end":50,"cssClass":"pl-s1"},{"start":45,"end":46,"cssClass":"pl-kos"},{"start":46,"end":49,"cssClass":"pl-s1"},{"start":49,"end":50,"cssClass":"pl-kos"}],[{"start":0,"end":2,"cssClass":"pl-s1"},{"start":3,"end":11,"cssClass":"pl-en"},{"start":12,"end":16,"cssClass":"pl-s"}],[{"start":0,"end":19,"cssClass":"pl-s"}],[{"start":0,"end":9,"cssClass":"pl-s"}],[{"start":0,"end":80,"cssClass":"pl-s"},{"start":27,"end":35,"cssClass":"pl-s1"},{"start":27,"end":28,"cssClass":"pl-kos"},{"start":28,"end":34,"cssClass":"pl-s1"},{"start":34,"end":35,"cssClass":"pl-kos"},{"start":49,"end":62,"cssClass":"pl-s1"},{"start":49,"end":50,"cssClass":"pl-kos"},{"start":50,"end":61,"cssClass":"pl-s1"},{"start":61,"end":62,"cssClass":"pl-kos"},{"start":71,"end":79,"cssClass":"pl-s1"},{"start":71,"end":72,"cssClass":"pl-kos"},{"start":72,"end":78,"cssClass":"pl-s1"},{"start":78,"end":79,"cssClass":"pl-kos"}],[{"start":0,"end":6,"cssClass":"pl-s"}],[],[],[],[],[],[],[{"start":0,"end":4,"cssClass":"pl-s1"},{"start":5,"end":6,"cssClass":"pl-c1"},{"start":7,"end":15,"cssClass":"pl-en"}],[{"start":0,"end":2,"cssClass":"pl-s1"},{"start":3,"end":4,"cssClass":"pl-c1"},{"start":5,"end":23,"cssClass":"pl-v"},{"start":24,"end":38,"cssClass":"pl-en"},{"start":39,"end":43,"cssClass":"pl-s1"}],[{"start":0,"end":26,"cssClass":"pl-c"}],[{"start":0,"end":2,"cssClass":"pl-s1"},{"start":3,"end":20,"cssClass":"pl-en"},{"start":21,"end":25,"cssClass":"pl-en"},{"start":26,"end":33,"cssClass":"pl-s"},{"start":36,"end":44,"cssClass":"pl-s1"},{"start":44,"end":45,"cssClass":"pl-c1"},{"start":45,"end":49,"cssClass":"pl-c1"}],[],[{"start":0,"end":116,"cssClass":"pl-c"}],[{"start":0,"end":221,"cssClass":"pl-c"}],[{"start":0,"end":2,"cssClass":"pl-s1"},{"start":3,"end":4,"cssClass":"pl-c1"},{"start":5,"end":7,"cssClass":"pl-s1"},{"start":8,"end":13,"cssClass":"pl-en"}],[],[],[{"start":0,"end":126,"cssClass":"pl-c"}],[{"start":0,"end":43,"cssClass":"pl-c"}],[{"start":0,"end":75,"cssClass":"pl-c"}],[],[{"start":0,"end":2,"cssClass":"pl-k"},{"start":3,"end":16,"cssClass":"pl-s1"}],[{"start":4,"end":6,"cssClass":"pl-s1"},{"start":7,"end":8,"cssClass":"pl-c1"},{"start":9,"end":15,"cssClass":"pl-v"}],[{"start":8,"end":12,"cssClass":"pl-s1"}],[{"start":8,"end":19,"cssClass":"pl-s1"},{"start":19,"end":20,"cssClass":"pl-c1"},{"start":20,"end":22,"cssClass":"pl-s1"}],[{"start":8,"end":14,"cssClass":"pl-s1"},{"start":14,"end":15,"cssClass":"pl-c1"},{"start":15,"end":21,"cssClass":"pl-s1"}],[{"start":8,"end":32,"cssClass":"pl-s1"},{"start":32,"end":33,"cssClass":"pl-c1"},{"start":33,"end":37,"cssClass":"pl-c1"}],[{"start":8,"end":11,"cssClass":"pl-s1"},{"start":11,"end":12,"cssClass":"pl-c1"},{"start":12,"end":27,"cssClass":"pl-s"}],[{"start":8,"end":19,"cssClass":"pl-s1"},{"start":19,"end":20,"cssClass":"pl-c1"},{"start":20,"end":31,"cssClass":"pl-s1"}],[],[{"start":0,"end":4,"cssClass":"pl-k"}],[{"start":4,"end":6,"cssClass":"pl-s1"},{"start":7,"end":8,"cssClass":"pl-c1"},{"start":9,"end":15,"cssClass":"pl-v"}],[{"start":8,"end":12,"cssClass":"pl-s1"}],[{"start":8,"end":19,"cssClass":"pl-s1"},{"start":19,"end":20,"cssClass":"pl-c1"},{"start":20,"end":22,"cssClass":"pl-s1"}],[{"start":8,"end":14,"cssClass":"pl-s1"},{"start":14,"end":15,"cssClass":"pl-c1"},{"start":15,"end":21,"cssClass":"pl-s1"}],[{"start":8,"end":32,"cssClass":"pl-s1"},{"start":32,"end":33,"cssClass":"pl-c1"},{"start":33,"end":37,"cssClass":"pl-c1"}],[],[],[{"start":0,"end":2,"cssClass":"pl-s1"},{"start":3,"end":12,"cssClass":"pl-en"},{"start":13,"end":28,"cssClass":"pl-s"}],[{"start":0,"end":2,"cssClass":"pl-s1"},{"start":3,"end":12,"cssClass":"pl-en"},{"start":13,"end":15,"cssClass":"pl-s1"},{"start":16,"end":22,"cssClass":"pl-s"}],[],[{"start":0,"end":2,"cssClass":"pl-s1"},{"start":3,"end":12,"cssClass":"pl-en"},{"start":13,"end":27,"cssClass":"pl-s"}],[{"start":0,"end":2,"cssClass":"pl-s1"},{"start":3,"end":8,"cssClass":"pl-en"},{"start":9,"end":11,"cssClass":"pl-s1"}]],"csv":null,"csvError":null,"dependabotInfo":{"showConfigurationBanner":false,"configFilePath":null,"networkDependabotPath":"/PablocFonseca/streamlit-aggrid-examples/network/updates","dismissConfigurationNoticePath":"/settings/dismiss-notice/dependabot_configuration_notice","configurationNoticeDismissed":null,"repoAlertsPath":"/PablocFonseca/streamlit-aggrid-examples/security/dependabot","repoSecurityAndAnalysisPath":"/PablocFonseca/streamlit-aggrid-examples/settings/security_analysis","repoOwnerIsOrg":false,"currentUserCanAdminRepo":false},"displayName":"fixed_key_example.py","displayUrl":"https://github.com/PablocFonseca/streamlit-aggrid-examples/blob/main/fixed_key_example.py?raw=true","headerInfo":{"blobSize":"2.99 KB","deleteInfo":{"deleteTooltip":"You must be signed in to make or propose changes"},"editInfo":{"editTooltip":"You must be signed in to make or propose changes"},"ghDesktopPath":"https://desktop.github.com","gitLfsPath":null,"onBranch":true,"shortPath":"1844315","siteNavLoginPath":"/login?return_to=https%3A%2F%2Fgithub.com%2FPablocFonseca%2Fstreamlit-aggrid-examples%2Fblob%2Fmain%2Ffixed_key_example.py","isCSV":false,"isRichtext":false,"toc":null,"lineInfo":{"truncatedLoc":"101","truncatedSloc":"76"},"mode":"file"},"image":false,"isCodeownersFile":null,"isPlain":false,"isValidLegacyIssueTemplate":false,"issueTemplateHelpUrl":"https://docs.github.com/articles/about-issue-and-pull-request-templates","issueTemplate":null,"discussionTemplate":null,"language":"Python","languageID":303,"large":false,"loggedIn":false,"newDiscussionPath":"/PablocFonseca/streamlit-aggrid-examples/discussions/new","newIssuePath":"/PablocFonseca/streamlit-aggrid-examples/issues/new","planSupportInfo":{"repoIsFork":null,"repoOwnedByCurrentUser":null,"requestFullPath":"/PablocFonseca/streamlit-aggrid-examples/blob/main/fixed_key_example.py","showFreeOrgGatedFeatureMessage":null,"showPlanSupportBanner":null,"upgradeDataAttributes":null,"upgradePath":null},"publishBannersInfo":{"dismissActionNoticePath":"/settings/dismiss-notice/publish_action_from_dockerfile","dismissStackNoticePath":"/settings/dismiss-notice/publish_stack_from_file","releasePath":"/PablocFonseca/streamlit-aggrid-examples/releases/new?marketplace=true","showPublishActionBanner":false,"showPublishStackBanner":false},"rawBlobUrl":"https://github.com/PablocFonseca/streamlit-aggrid-examples/raw/main/fixed_key_example.py","renderImageOrRaw":false,"richText":null,"renderedFileInfo":null,"shortPath":null,"symbolsEnabled":true,"tabSize":8,"topBannersInfo":{"overridingGlobalFundingFile":false,"globalPreferredFundingPath":null,"repoOwner":"PablocFonseca","repoName":"streamlit-aggrid-examples","showInvalidCitationWarning":false,"citationHelpUrl":"https://docs.github.com/en/github/creating-cloning-and-archiving-repositories/creating-a-repository-on-github/about-citation-files","showDependabotConfigurationBanner":false,"actionsOnboardingTip":null},"truncated":false,"viewable":true,"workflowRedirectUrl":null,"symbols":{"timed_out":false,"not_analyzed":false,"symbols":[{"name":"get_data","kind":"function","ident_start":129,"ident_end":137,"extent_start":125,"extent_end":260,"fully_qualified_name":"get_data","ident_utf16":{"start":{"line_number":7,"utf16_col":4},"end":{"line_number":7,"utf16_col":12}},"extent_utf16":{"start":{"line_number":7,"utf16_col":0},"end":{"line_number":11,"utf16_col":13}}},{"name":"height","kind":"constant","ident_start":659,"ident_end":665,"extent_start":659,"extent_end":733,"fully_qualified_name":"height","ident_utf16":{"start":{"line_number":22,"utf16_col":0},"end":{"line_number":22,"utf16_col":6}},"extent_utf16":{"start":{"line_number":22,"utf16_col":0},"end":{"line_number":22,"utf16_col":74}}},{"name":"use_fixed_key","kind":"constant","ident_start":942,"ident_end":955,"extent_start":942,"extent_end":1014,"fully_qualified_name":"use_fixed_key","ident_utf16":{"start":{"line_number":29,"utf16_col":0},"end":{"line_number":29,"utf16_col":13}},"extent_utf16":{"start":{"line_number":29,"utf16_col":0},"end":{"line_number":29,"utf16_col":72}}},{"name":"reload_data","kind":"constant","ident_start":1336,"ident_end":1347,"extent_start":1336,"extent_end":1353,"fully_qualified_name":"reload_data","ident_utf16":{"start":{"line_number":39,"utf16_col":0},"end":{"line_number":39,"utf16_col":11}},"extent_utf16":{"start":{"line_number":39,"utf16_col":0},"end":{"line_number":39,"utf16_col":17}}},{"name":"button","kind":"constant","ident_start":1384,"ident_end":1390,"extent_start":1384,"extent_end":1442,"fully_qualified_name":"button","ident_utf16":{"start":{"line_number":41,"utf16_col":0},"end":{"line_number":41,"utf16_col":6}},"extent_utf16":{"start":{"line_number":41,"utf16_col":0},"end":{"line_number":41,"utf16_col":58}}},{"name":"reload_data_option","kind":"constant","ident_start":1443,"ident_end":1461,"extent_start":1443,"extent_end":1536,"fully_qualified_name":"reload_data_option","ident_utf16":{"start":{"line_number":42,"utf16_col":0},"end":{"line_number":42,"utf16_col":18}},"extent_utf16":{"start":{"line_number":42,"utf16_col":0},"end":{"line_number":42,"utf16_col":93}}},{"name":"key_md","kind":"constant","ident_start":1683,"ident_end":1689,"extent_start":1683,"extent_end":1734,"fully_qualified_name":"key_md","ident_utf16":{"start":{"line_number":53,"utf16_col":0},"end":{"line_number":53,"utf16_col":6}},"extent_utf16":{"start":{"line_number":53,"utf16_col":0},"end":{"line_number":53,"utf16_col":51}}},{"name":"data","kind":"constant","ident_start":1877,"ident_end":1881,"extent_start":1877,"extent_end":1894,"fully_qualified_name":"data","ident_utf16":{"start":{"line_number":65,"utf16_col":0},"end":{"line_number":65,"utf16_col":4}},"extent_utf16":{"start":{"line_number":65,"utf16_col":0},"end":{"line_number":65,"utf16_col":17}}},{"name":"gb","kind":"constant","ident_start":1895,"ident_end":1897,"extent_start":1895,"extent_end":1939,"fully_qualified_name":"gb","ident_utf16":{"start":{"line_number":66,"utf16_col":0},"end":{"line_number":66,"utf16_col":2}},"extent_utf16":{"start":{"line_number":66,"utf16_col":0},"end":{"line_number":66,"utf16_col":44}}},{"name":"go","kind":"constant","ident_start":2358,"ident_end":2360,"extent_start":2358,"extent_end":2373,"fully_qualified_name":"go","ident_utf16":{"start":{"line_number":72,"utf16_col":0},"end":{"line_number":72,"utf16_col":2}},"extent_utf16":{"start":{"line_number":72,"utf16_col":0},"end":{"line_number":72,"utf16_col":15}}}]}},"copilotInfo":null,"copilotAccessAllowed":false,"csrf_tokens":{"/PablocFonseca/streamlit-aggrid-examples/branches":{"post":"l_9M8wzUrdfA5coL4JhrqAugysOOFhd1lwh9_4RLFoOhK9rIyTIMh5gyXLp3CajJDGFblbzKOW6WWwP10ILmAQ"},"/repos/preferences":{"post":"Lqy9-aKqsIn1GTUmkPMoGOgxxxXsbsFuOYOkulADDwywZx5hoyfehPTayoCPkTn-9-OOrQd7aq6Yapn1TWkSqg"}}},"title":"streamlit-aggrid-examples/fixed_key_example.py at main · PablocFonseca/streamlit-aggrid-examples"}