Communities

Writing
Writing
Codidact Meta
Codidact Meta
The Great Outdoors
The Great Outdoors
Photography & Video
Photography & Video
Scientific Speculation
Scientific Speculation
Cooking
Cooking
Electrical Engineering
Electrical Engineering
Judaism
Judaism
Languages & Linguistics
Languages & Linguistics
Software Development
Software Development
Mathematics
Mathematics
Christianity
Christianity
Code Golf
Code Golf
Music
Music
Physics
Physics
Linux Systems
Linux Systems
Power Users
Power Users
Tabletop RPGs
Tabletop RPGs
Community Proposals
Community Proposals
tag:snake search within a tag
answers:0 unanswered questions
user:xxxx search by author id
score:0.5 posts with 0.5+ score
"snake oil" exact phrase
votes:4 posts with 4+ votes
created:<1w created < 1 week ago
post_type:xxxx type of post
Search help
Notifications
Mark all as read See all your notifications »

Welcome to Software Development on Codidact!

Will you help us build our independent community of developers helping developers? We're small and trying to grow. We welcome questions about all aspects of software development, from design to code to QA and more. Got questions? Got answers? Got code you'd like someone to review? Please join us.

Activity for pycoder‭

Type On... Excerpt Status Date
Comment Post #295337 I tweaked the graphviz a bit to make the nodes rectangular and added xlabels for the section numbers, and it's almost perfect (sadly, the URL exceeds the comment character limit). I might experiment with subgraphs and your recommendation to use HTML/CSS later. Thank you for helping me with thi...
(more)
8 months ago
Edit Post #295277 Initial revision 8 months ago
Question Python-compatible regex for Markdown tables
My goal is to programatically convert Markdown tables to their HTML equivalents using regular expressions. I haven't been able to find any Python-compatible regexes for Markdown tables online, so I've been attempting to build my own. However, I've run into a bit of a snag. This is my code so far:...
(more)
8 months ago
Edit Post #295236 Post edited:
9 months ago
Edit Post #295236 Initial revision 9 months ago
Question Generating a better looking family tree-style graph in Python
My goal I'm looking for a way to programatically generate a visual representation of interlinked sections in a text file (preferably in svg format), with particular aesthetic considerations. The graph should go from left to right, and consist of rectangular nodes connected by lines - each o...
(more)
9 months ago
Comment Post #295182 Just to make sure I'm understanding this correctly, if I go the EventSource route, the Python script should inject JavaScript into each HTML page it generates in the form of an EventSource, which listens for messages from the HTTP server and calls window.location.reload() when it gets one. The...
(more)
9 months ago
Edit Post #295173 Initial revision 9 months ago
Question Python http.server how can I programatically refresh the browser page?
I'm currently using a static site generator (SSG) to convert a large collection of Markdown notes to a personal HTML/CSS wiki, but I decided to replace it with a Python script so I can fully customize every aspect of the site generation and my workflow. It's also something of a programming challe...
(more)
9 months ago
Comment Post #294909 Thanks for the suggestion. It works perfectly. My intention was more to learn how to use re.sub() in this manner, which is why I didn't use a library.
(more)
11 months ago
Edit Post #294905 Initial revision 11 months ago
Question Python re.sub() how to include and slice the match in the substitution?
I recently started learning regular expressions and I'm trying to use Python's re module, specifically the re.sub() function, to convert a subset of Markdown syntax to HTML whenever it appears in a string. However, I haven't been able to figure out how to slice the source string so that the Markd...
(more)
11 months ago
Edit Post #294757 Initial revision 11 months ago
Question Python BeautifulSoup how to correctly parse quote symbols in link titles (broken html)?
I'm learning some basic web scraping so I can download part of a static website for offline viewing. In the process, I'm running into link tags that look something like this: ``` Page X ``` Or, that's what I'd expect to get when looking at the page source. When I run `html = urlopen(url)....
(more)
11 months ago
Edit Post #293873 Initial revision over 1 year ago
Answer A: How to turn lines of text in PyQt6 QTextEdit into clickable links that call a function?
I figured out a solution, which I'm posting here since my question is at the top of the search results. I'll leave out the parts specific to my project since a more generic solution might be more useful to anyone else with a similar problem. ``` import sys from PyQt6.QtWidgets import QApplic...
(more)
over 1 year ago
Edit Post #293837 Post edited:
over 1 year ago
Edit Post #293837 Initial revision over 1 year ago
Question How to turn lines of text in PyQt6 QTextEdit into clickable links that call a function?
A while back, I made this post about reading specified sections in a text file formatted a particular way. I've since updated the format for that file to include links at the start of arbitrary lines within the section text, formatted as `{sectionNumber some text}`. The problem is, I now need ...
(more)
over 1 year ago
Edit Post #293660 Initial revision over 1 year ago
Question How to find the last line number of a section in a text file (particular format)
I'm writing a function which reads specified sections in a text file formatted a particular way, but I'm having a hard time figuring out how to locate the last line number. Here's an example of the text file's format, where the numbers correspond to unique sections contained within the square bra...
(more)
over 1 year ago