Skip to content

Tag: python

How to make label in st.multiselect bigger/bolder

I am looking to make the label of multiselect bigger / bolder, my code looks like this : I have tried adding this : from this page : https://discuss.streamlit.io/t/the-problem-changing-label-font-of-text-input-and-multi-select/23329 but all it does is display the text on my app like so : Am I doing this wrong…

Trio + PyQT5 in one program?

How can I use trio in conjunction with PyQT5? The thing is that my program has interface written using PyQT5, and now I need to run eventloop trio, to work with the network, because I use trio WebSocket to connect to the server. I read that I should use trio.lowlevel.start_guest_run for this purpose. But in t…

combining split with findall

I’m splitting a string with some separator, but want the separator matches as well: I can’t find an easy way to combine the 2 lists I get: Into the desired output: Answer From the re.split docs: If capturing parentheses are used in pattern, then the text of all groups in the pattern are also retur…

Python Django REST Infinite Recursion Problem

As of late I’ve started working towards learning REST Api with Django Rest Framework, Cors headers, and mssql connector both for personal purposes, and for a project I’m working on. Beneath I’ll include snippets of code and or the errors I got to make this easier to digest. Working with this…

Need to filter list of dictionaries

I have one large list of dictionaries pulled from a database. I’m wondering if there is a way to search the first list of dicts to only show the first 3 digits (list would be unique to avoid duplicate entries) in one dropdown menu and, based on the selection, show the appropriate options? Essentially th…