Sunday Daily Thread: What's everyone working on this week?
# Weekly Thread: What's Everyone Working On This Week? 🛠️
Hello /r/Python! It's time to share what you've been working on! Whether it's a work-in-progress, a completed masterpiece, or just a rough idea, let us know what you're up to!
## How it Works:
1. Show & Tell: Share your current projects, completed works, or future ideas.
2. Discuss: Get feedback, find collaborators, or just chat about your project.
3. Inspire: Your project might inspire someone else, just as you might get inspired here.
## Guidelines:
Feel free to include as many details as you'd like. Code snippets, screenshots, and links are all welcome.
Whether it's your job, your hobby, or your passion project, all Python-related work is welcome here.
## Example Shares:
1. Machine Learning Model: Working on a ML model to predict stock prices. Just cracked a 90% accuracy rate!
2. Web Scraping: Built a script to scrape and analyze news articles. It's helped me understand media bias better.
3. Automation: Automated my home lighting with Python and Raspberry Pi. My life has never been easier!
Let's build and grow together! Share your journey and learn from others. Happy coding! 🌟
/r/Python
https://redd.it/1gcygl6
# Weekly Thread: What's Everyone Working On This Week? 🛠️
Hello /r/Python! It's time to share what you've been working on! Whether it's a work-in-progress, a completed masterpiece, or just a rough idea, let us know what you're up to!
## How it Works:
1. Show & Tell: Share your current projects, completed works, or future ideas.
2. Discuss: Get feedback, find collaborators, or just chat about your project.
3. Inspire: Your project might inspire someone else, just as you might get inspired here.
## Guidelines:
Feel free to include as many details as you'd like. Code snippets, screenshots, and links are all welcome.
Whether it's your job, your hobby, or your passion project, all Python-related work is welcome here.
## Example Shares:
1. Machine Learning Model: Working on a ML model to predict stock prices. Just cracked a 90% accuracy rate!
2. Web Scraping: Built a script to scrape and analyze news articles. It's helped me understand media bias better.
3. Automation: Automated my home lighting with Python and Raspberry Pi. My life has never been easier!
Let's build and grow together! Share your journey and learn from others. Happy coding! 🌟
/r/Python
https://redd.it/1gcygl6
Reddit
From the Python community on Reddit
Explore this post and more from the Python community
D Self-Promotion Thread
Please post your personal projects, startups, product placements, collaboration needs, blogs etc.
Please mention the payment and pricing requirements for products and services.
Please do not post link shorteners, link aggregator websites , or auto-subscribe links.
--
Any abuse of trust will lead to bans.
Encourage others who create new posts for questions to post here instead!
Thread will stay alive until next one so keep posting after the date in the title.
--
Meta: This is an experiment. If the community doesnt like this, we will cancel it. This is to encourage those in the community to promote their work by not spamming the main threads.
/r/MachineLearning
https://redd.it/1gd0v8r
Please post your personal projects, startups, product placements, collaboration needs, blogs etc.
Please mention the payment and pricing requirements for products and services.
Please do not post link shorteners, link aggregator websites , or auto-subscribe links.
--
Any abuse of trust will lead to bans.
Encourage others who create new posts for questions to post here instead!
Thread will stay alive until next one so keep posting after the date in the title.
--
Meta: This is an experiment. If the community doesnt like this, we will cancel it. This is to encourage those in the community to promote their work by not spamming the main threads.
/r/MachineLearning
https://redd.it/1gd0v8r
Reddit
From the MachineLearning community on Reddit
Explore this post and more from the MachineLearning community
Moving to Canada Soon! Looking to Connect with Fellow Django Devs
Hey everyone! I'm moving to Canada in about four months, and I'm excited to connect with people working with Django. I have around three years of experience building large-scale Django apps that handle millions of data entries, and I'm always looking to improve and learn from others.
If you're in Canada or familiar with the Django scene there, I'd love to hear any insights, or tips, or just chat about the latest in Django development! 😊
/r/django
https://redd.it/1gcx9ax
Hey everyone! I'm moving to Canada in about four months, and I'm excited to connect with people working with Django. I have around three years of experience building large-scale Django apps that handle millions of data entries, and I'm always looking to improve and learn from others.
If you're in Canada or familiar with the Django scene there, I'd love to hear any insights, or tips, or just chat about the latest in Django development! 😊
/r/django
https://redd.it/1gcx9ax
Reddit
From the django community on Reddit
Explore this post and more from the django community
How do I compare a form in CKEditorField and StringField?
I am using flask and flask-sqlalchemy and flask-wtf-forms.
Imagine I have 2 forms where one form is placed in each flask route.
Lets start with the first route and the first form.
The 1st form has the flask wtf field
In the 2nd route I am using
Now I am using a custom validator in the form and I query
TLDR:
I have 2 forms. The 1st form being
/r/flask
https://redd.it/1gcujm2
I am using flask and flask-sqlalchemy and flask-wtf-forms.
Imagine I have 2 forms where one form is placed in each flask route.
Lets start with the first route and the first form.
The 1st form has the flask wtf field
CKEditorField. Within the route I type zzz in the form. Next I save this in the Posts table as the content column. Now lets switch to the second route and second form.In the 2nd route I am using
StringField. Then in a form, I input/type zzz. Now I am using a custom validator in the form and I query
one_or_None for the Posts table. If Posts returns something I then test if posts_db.content == content_form' I raise the validationerror('the post is not unique"). This should work but what if I use something like bold in the ckeditor form. How would I get the output in the second Stringfield form? The only solution I can think of is passing on the variable posts_db in the route. Does anyone have any other suggestions?TLDR:
I have 2 forms. The 1st form being
CKEditorField ,in the 1st route, which I fill with the text 'zzz' then save it the Posts db/r/flask
https://redd.it/1gcujm2
Reddit
From the flask community on Reddit
Explore this post and more from the flask community
How did you first learn about Python?
How did all of you stumble upon python? I saw someone writing python in RuneScape one day and became curious. Then I dipped into front end frameworks like html and css, then JavaScript and python
/r/Python
https://redd.it/1gcwcex
How did all of you stumble upon python? I saw someone writing python in RuneScape one day and became curious. Then I dipped into front end frameworks like html and css, then JavaScript and python
/r/Python
https://redd.it/1gcwcex
Reddit
From the Python community on Reddit
Explore this post and more from the Python community
Django and iOS/android apps?
Is it possible to create one Django web app and also release iOS and android versions of that app without having to write in the native languages? It would be great to avoid having to learn/write in 3 frameworks but also is great for consistency/maintainability, only having to maintain the code in one place
Of course, a Django web app can be used on mobile, but people always seem to say that users want to actually install an iOS/ android app instead. What is the best option here?
/r/django
https://redd.it/1gd77ho
Is it possible to create one Django web app and also release iOS and android versions of that app without having to write in the native languages? It would be great to avoid having to learn/write in 3 frameworks but also is great for consistency/maintainability, only having to maintain the code in one place
Of course, a Django web app can be used on mobile, but people always seem to say that users want to actually install an iOS/ android app instead. What is the best option here?
/r/django
https://redd.it/1gd77ho
Reddit
From the django community on Reddit
Explore this post and more from the django community
Looking for someone willing to join a call with me to review my code
I'm working on Django Rest Framework and built REST API with MySQL workbench as database, I've got most of the code done, but I'm facing bugs in authentication that I've been stuck on for a really long time and I can't move on with my project without fixing them, I really tried everything and I'm trying this as a last option, I don't want anyone to write me code, I'm suggesting if someone is willing to join a discord call with me where I can share my screen and they can review my code and maybe tell me what I've been doing wrong. it's not a large project and I'll make sure I don't take much time, it'll be much appreciated, thanks for everyone in advance :)
/r/django
https://redd.it/1gd7jpy
I'm working on Django Rest Framework and built REST API with MySQL workbench as database, I've got most of the code done, but I'm facing bugs in authentication that I've been stuck on for a really long time and I can't move on with my project without fixing them, I really tried everything and I'm trying this as a last option, I don't want anyone to write me code, I'm suggesting if someone is willing to join a discord call with me where I can share my screen and they can review my code and maybe tell me what I've been doing wrong. it's not a large project and I'll make sure I don't take much time, it'll be much appreciated, thanks for everyone in advance :)
/r/django
https://redd.it/1gd7jpy
Reddit
From the django community on Reddit
Explore this post and more from the django community
D Last Week in Medical AI: Top LLM Research Papers/Models (October 19 - October 26)
Last Week in Medical AI: Top LLM Research Papers\/Models \(October 19 - October 26\)
Medical AI Paper of the Week:
Safety principles for medical summarization using generative AI by Google
This paper discusses the potential and challenges of applying large language models (LLMs) in healthcare, focusing on the promise of generative AI to support various workflows. Medical LLM & Other Models:
Medical LLM & Other Models:
BioMistral-NLU: Medical Vocab Understanding
This paper introduces BioMistral-NLU, a generalizable medical NLU model fine-tuned on the MNLU-Instruct dataset for improved performance on specialized medical tasks. BioMistral-NLU outperforms existing LLMs like ChatGPT and GPT-4 in zero-shot evaluations across six NLU tasks from BLUE and BLURB benchmarks.
Bilingual Multimodal LLM for Biomedical Tasks
This paper introduces MedRegA, a novel region-aware medical Multimodal Large Language Model (MLLM) trained on a large-scale dataset called MedRegInstruct.
Metabolic-Enhanced LLMs for Clinical Analysis
This paper introduces Metabolism Pathway-driven Prompting (MPP) to enhance anomaly detection in clinical time-series data by integrating domain knowledge of metabolic pathways into LLMs.
Dermatology Foundation Model
This paper introduces PanDerm, a multimodal dermatology foundation model trained on over
/r/MachineLearning
https://redd.it/1gd6k6j
Last Week in Medical AI: Top LLM Research Papers\/Models \(October 19 - October 26\)
Medical AI Paper of the Week:
Safety principles for medical summarization using generative AI by Google
This paper discusses the potential and challenges of applying large language models (LLMs) in healthcare, focusing on the promise of generative AI to support various workflows. Medical LLM & Other Models:
Medical LLM & Other Models:
BioMistral-NLU: Medical Vocab Understanding
This paper introduces BioMistral-NLU, a generalizable medical NLU model fine-tuned on the MNLU-Instruct dataset for improved performance on specialized medical tasks. BioMistral-NLU outperforms existing LLMs like ChatGPT and GPT-4 in zero-shot evaluations across six NLU tasks from BLUE and BLURB benchmarks.
Bilingual Multimodal LLM for Biomedical Tasks
This paper introduces MedRegA, a novel region-aware medical Multimodal Large Language Model (MLLM) trained on a large-scale dataset called MedRegInstruct.
Metabolic-Enhanced LLMs for Clinical Analysis
This paper introduces Metabolism Pathway-driven Prompting (MPP) to enhance anomaly detection in clinical time-series data by integrating domain knowledge of metabolic pathways into LLMs.
Dermatology Foundation Model
This paper introduces PanDerm, a multimodal dermatology foundation model trained on over
/r/MachineLearning
https://redd.it/1gd6k6j
We're thinking of rewriting our go / java API in python, what do we need to think about?
Background:
We have a horrible hodgepodge of APIs in front of our data platform, java that mostly calls underlying functions in the go (with slightly more user friendly calls). The go API often calls bash scripts to do the actual work. Most of the stuff the API does is building a call for an external service like doing spark submit on the file the user has provided or creating a table in hive with details the user has provided. The java API has swagger and is mostly what all users call.
One option we have is to rewrite it all in go getting rid of java and bash, write swagger into the go and all the things the java does.
But we're predominantly a python shop, which means whenever something needs to be done with the APIs only a few people are prepared to go near it and it's recieved very little change over the years where the rest of the platform is moving on rapidly.
So a few of us are in favour for rewiteing it all in something like fastAPI, (or maybe black sheep?)
From what I understand this would basically give us swagger for free and mean there
/r/Python
https://redd.it/1gdavp9
Background:
We have a horrible hodgepodge of APIs in front of our data platform, java that mostly calls underlying functions in the go (with slightly more user friendly calls). The go API often calls bash scripts to do the actual work. Most of the stuff the API does is building a call for an external service like doing spark submit on the file the user has provided or creating a table in hive with details the user has provided. The java API has swagger and is mostly what all users call.
One option we have is to rewrite it all in go getting rid of java and bash, write swagger into the go and all the things the java does.
But we're predominantly a python shop, which means whenever something needs to be done with the APIs only a few people are prepared to go near it and it's recieved very little change over the years where the rest of the platform is moving on rapidly.
So a few of us are in favour for rewiteing it all in something like fastAPI, (or maybe black sheep?)
From what I understand this would basically give us swagger for free and mean there
/r/Python
https://redd.it/1gdavp9
Reddit
From the Python community on Reddit
Explore this post and more from the Python community
profile pic not showing
models.py:
class Profile(models.Model):
user = models.OneToOneField(User,ondelete=models.CASCADE)
userimage = models.ImageField(uploadto="userpic/")
def str(self):
return self.user.username
urls.py:
from django.conf import settings
from django.conf.urls.static import static
urlpatterns += +static(settings.MEDIAURL, documentroot=settings.MEDIAROOT)
html template:
<img src="{{ user.profile.userimage.url }}" alt="img">
error showing in terminal:
Not Found: /picture/userpic/10987982.jpg
GET /picture/userpic/10987982.jpg HTTP/1.1" 404 2270
the image stored in picture/user_pic/ but not rendered on html template but user name and first name is render in html template
/r/django
https://redd.it/1gdbbd8
models.py:
class Profile(models.Model):
user = models.OneToOneField(User,ondelete=models.CASCADE)
userimage = models.ImageField(uploadto="userpic/")
def str(self):
return self.user.username
urls.py:
from django.conf import settings
from django.conf.urls.static import static
urlpatterns += +static(settings.MEDIAURL, documentroot=settings.MEDIAROOT)
html template:
<img src="{{ user.profile.userimage.url }}" alt="img">
error showing in terminal:
Not Found: /picture/userpic/10987982.jpg
GET /picture/userpic/10987982.jpg HTTP/1.1" 404 2270
the image stored in picture/user_pic/ but not rendered on html template but user name and first name is render in html template
/r/django
https://redd.it/1gdbbd8
Reddit
From the django community on Reddit
Explore this post and more from the django community
How can I incorporate data science in Django project?
Hello, I’m working on a data science project for academic research. I need to do some data analysis (I mean, data acquisition, pre-processing and data processing), specifically, it is about natural language processing so I also need to train a machine learning model I can get an output I can put in a map (a Google map).
I’ve selected Django as the back-end framework I will use together with Flutter to develop my user interface for a mobile app in which I can deploy my map.
So, my question is how can I handle my data analysis code into the Django project so I am able to map the output of my analysis into my geographic map, that is to say: where do I have to put my data analysis logic in the Django project considering I am planning to save the data I retrieve externally into a database based on my models? and, consequently how can I store the analysis into the database?
Somebody told me about using microservices but, is that really necessary? In which cases are they used? And, can I manage this locally or what approach should I use to manage this data processing? at what point would I
/r/django
https://redd.it/1gd0wms
Hello, I’m working on a data science project for academic research. I need to do some data analysis (I mean, data acquisition, pre-processing and data processing), specifically, it is about natural language processing so I also need to train a machine learning model I can get an output I can put in a map (a Google map).
I’ve selected Django as the back-end framework I will use together with Flutter to develop my user interface for a mobile app in which I can deploy my map.
So, my question is how can I handle my data analysis code into the Django project so I am able to map the output of my analysis into my geographic map, that is to say: where do I have to put my data analysis logic in the Django project considering I am planning to save the data I retrieve externally into a database based on my models? and, consequently how can I store the analysis into the database?
Somebody told me about using microservices but, is that really necessary? In which cases are they used? And, can I manage this locally or what approach should I use to manage this data processing? at what point would I
/r/django
https://redd.it/1gd0wms
Reddit
From the django community on Reddit
Explore this post and more from the django community
Discord recommendations for Flask Devs?
What are the best Discords for Flask developers? Some general python discords are welcomed as well.
/r/flask
https://redd.it/1gdg84b
What are the best Discords for Flask developers? Some general python discords are welcomed as well.
/r/flask
https://redd.it/1gdg84b
Reddit
From the flask community on Reddit
Explore this post and more from the flask community
Can I use both CPU and GPU cores simultaeneously?
I am currently working on an economic model using anaconda and Im kinda new to this.
The simulation is kinda slower than macbook m1 chips where it would take thrice the amount of time to complete the simulation
I am wondering if I can use both gpu (rx6600) and cpu (r7 5700x) to have as much cores for computing power.
/r/Python
https://redd.it/1gddbc6
I am currently working on an economic model using anaconda and Im kinda new to this.
The simulation is kinda slower than macbook m1 chips where it would take thrice the amount of time to complete the simulation
I am wondering if I can use both gpu (rx6600) and cpu (r7 5700x) to have as much cores for computing power.
/r/Python
https://redd.it/1gddbc6
Reddit
From the Python community on Reddit
Explore this post and more from the Python community
Tailwind styles aren’t working with forms
Trying to get my tailwind styles to work with my login form.
I am using django-tailwind. But some reason styles aren’t taking. I’ve restarted with tailwind server and Django server no change.
```
from django.contrib.auth.models import User # Ensure you import the correct User model
from django import forms
class LoginForm(forms.ModelForm):
class Meta:
model = User
fields = ['username', 'password']
username = forms.CharField(
label='Username',
widget=forms.TextInput(attrs={
'class': 'bg-gray-50 border border-gray-300 text-gray-900 rounded-lg focus:ring-primary-600 '
'focus:border-primary-600 block p-2.5 dark:bg-gray-700 dark:border-gray-600 '
'dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500',
'placeholder': 'Username'
}),
required=True
)
/r/djangolearning
https://redd.it/1gdnfko
Trying to get my tailwind styles to work with my login form.
I am using django-tailwind. But some reason styles aren’t taking. I’ve restarted with tailwind server and Django server no change.
```
from django.contrib.auth.models import User # Ensure you import the correct User model
from django import forms
class LoginForm(forms.ModelForm):
class Meta:
model = User
fields = ['username', 'password']
username = forms.CharField(
label='Username',
widget=forms.TextInput(attrs={
'class': 'bg-gray-50 border border-gray-300 text-gray-900 rounded-lg focus:ring-primary-600 '
'focus:border-primary-600 block p-2.5 dark:bg-gray-700 dark:border-gray-600 '
'dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500',
'placeholder': 'Username'
}),
required=True
)
/r/djangolearning
https://redd.it/1gdnfko
Reddit
From the djangolearning community on Reddit
Explore this post and more from the djangolearning community