Do any of you code to de-stress?
I work as a mechanical engr/program manager in the biomedical field, but love to hobby code on the side. I enjoy scraping datasets, from real estate to car auction websites, and running different analyses on it. Simple up front metrics, sorting, and deeper ML stuff with scikit.
I've recently cut down on drinking almost entirely and have found myself gravitating towards my laptop at the end of the day to just toy around with code.
There is something oddly comforting about seeing all the multi colored code in VScode. Something pleasantly pleasing about expanding your knowledge to learn better and simpler ways to code things. And something rewarding about getting results that you'll probably never use again after dedicating hours and sometimes weeks of work.
I hope this feeling doesn't fade.. I used to love photography in HS, but started making money doing it and lost most of my passion for it.
/r/Python
https://redd.it/12z56v6
I work as a mechanical engr/program manager in the biomedical field, but love to hobby code on the side. I enjoy scraping datasets, from real estate to car auction websites, and running different analyses on it. Simple up front metrics, sorting, and deeper ML stuff with scikit.
I've recently cut down on drinking almost entirely and have found myself gravitating towards my laptop at the end of the day to just toy around with code.
There is something oddly comforting about seeing all the multi colored code in VScode. Something pleasantly pleasing about expanding your knowledge to learn better and simpler ways to code things. And something rewarding about getting results that you'll probably never use again after dedicating hours and sometimes weeks of work.
I hope this feeling doesn't fade.. I used to love photography in HS, but started making money doing it and lost most of my passion for it.
/r/Python
https://redd.it/12z56v6
Reddit
r/Python on Reddit: Do any of you code to de-stress?
Posted by u/uifreiurfmsldkmfn - 30 votes and 13 comments
Help - no such file or directory but was fully functioning earlier
Hey all,
I was using JupyterLite and the notebook was doing everything I needed it to until I started getting "error no such file or directory" later in the day. I hadn't changed anything to the csv file's location and even played around with different names, paths, copy path, ect.
I have used Jupyter Notebooks online in the past and haven't seen anything like this. Currently in the process of downloading it for Windows and am going to see how that goes.
Thanks in advance!
/r/JupyterNotebooks
https://redd.it/12yt8xq
Hey all,
I was using JupyterLite and the notebook was doing everything I needed it to until I started getting "error no such file or directory" later in the day. I hadn't changed anything to the csv file's location and even played around with different names, paths, copy path, ect.
I have used Jupyter Notebooks online in the past and haven't seen anything like this. Currently in the process of downloading it for Windows and am going to see how that goes.
Thanks in advance!
/r/JupyterNotebooks
https://redd.it/12yt8xq
Reddit
r/JupyterNotebooks on Reddit: Help - no such file or directory but was fully functioning earlier
Posted by u/jasmme - 1 vote and no comments
GitHub - nicolas-van/win-cmd-escaper: A Python library to properly handle escaping of command line arguments in Windows' CMD.exe and Powershell.
https://github.com/nicolas-van/win-cmd-escaper
/r/Python
https://redd.it/12z6nby
https://github.com/nicolas-van/win-cmd-escaper
/r/Python
https://redd.it/12z6nby
GitHub
GitHub - nicolas-van/win-cmd-escaper: A Python library to properly handle escaping of command line arguments in Windows' CMD.exe…
A Python library to properly handle escaping of command line arguments in Windows' CMD.exe and Powershell. - nicolas-van/win-cmd-escaper
A Comprehensive Guide to Python Dictionaries: Understanding and Implementing
https://mrexamples.hashnode.dev/a-comprehensive-guide-to-python-dictionaries-understanding-and-implementing
/r/flask
https://redd.it/12zct19
https://mrexamples.hashnode.dev/a-comprehensive-guide-to-python-dictionaries-understanding-and-implementing
/r/flask
https://redd.it/12zct19
Mrexamples
A Comprehensive Guide to Python Dictionaries
We are discussing Python dictionaries, hoping that it would help the learners. Python is a powerful programming language that offers various data structures
Debugging a Mixed Python and C Language Stack
https://developer.nvidia.com/blog/debugging-mixed-python-and-c-language-stack/
/r/Python
https://redd.it/12zhl45
https://developer.nvidia.com/blog/debugging-mixed-python-and-c-language-stack/
/r/Python
https://redd.it/12zhl45
NVIDIA Technical Blog
Debugging a Mixed Python and C Language Stack
Debugging is difficult. Debugging across multiple languages is especially challenging, and debugging across devices often requires a team with varying skill sets and expertise to reveal the underlying…
urllib3 v2.0.0 is now generally available!
https://sethmlarson.dev/urllib3-2.0.0
/r/Python
https://redd.it/12zrs9n
https://sethmlarson.dev/urllib3-2.0.0
/r/Python
https://redd.it/12zrs9n
Seth Michael Larson
urllib3 v2.0.0 is now generally available
urllib3 v1.0 was first published 12 years ago in 2011 and has served the Python community beyond anyone's dreams.
Since that time, urllib3 has been installed over 8 billion times to become the most...
Since that time, urllib3 has been installed over 8 billion times to become the most...
A Cheat Sheet on using OpenAI's API in Python (PDF Download Link)
This cheat sheet summarizes the most important commands to use OpenAI models and DALL-E in a standard Python environment (
PDF source link (download): https://blog.finxter.com/openapi-cheat-sheet/
https://preview.redd.it/ayb4885s29wa1.png?width=720&format=png&auto=webp&v=enabled&s=b1e947041bdc5b01b072890978087ab2eae1ead8
/r/Python
https://redd.it/12zmlge
This cheat sheet summarizes the most important commands to use OpenAI models and DALL-E in a standard Python environment (
pip install openai).PDF source link (download): https://blog.finxter.com/openapi-cheat-sheet/
https://preview.redd.it/ayb4885s29wa1.png?width=720&format=png&auto=webp&v=enabled&s=b1e947041bdc5b01b072890978087ab2eae1ead8
/r/Python
https://redd.it/12zmlge
You wrote some code but it was waste
Have it ever happened to you that you have a good idea for a project, you start building the project giving it most of your time and after days you come to know that there was an way way to do it
I always wanted to create a website that will do something unique, I just wanted to show off my website in college.
So i got an idea of creating a flask python website, and after completing it i was just going to host it on pythonanywhere and then i realised that the whole website can be made without using flask with just html
I worked with modules like pillow, os, shutil only to know that there was a really easy way to do all that, at this point i'm like shocked because i experienced something like this for the first time....
/r/Python
https://redd.it/12zpfam
Have it ever happened to you that you have a good idea for a project, you start building the project giving it most of your time and after days you come to know that there was an way way to do it
I always wanted to create a website that will do something unique, I just wanted to show off my website in college.
So i got an idea of creating a flask python website, and after completing it i was just going to host it on pythonanywhere and then i realised that the whole website can be made without using flask with just html
I worked with modules like pillow, os, shutil only to know that there was a really easy way to do all that, at this point i'm like shocked because i experienced something like this for the first time....
/r/Python
https://redd.it/12zpfam
Reddit
r/Python on Reddit: You wrote some code but it was waste
Posted by u/big-brar - 10 votes and 27 comments
I need help to deploy my flask blog app!!
Hi everyone I'm a software engineering student and I need help to deploy my blog application that I recently build with flask and it's my first ever project in web development. The problem is that I use a package structure :
├── flaskblog
│ ├── forms.py
│ ├── __init__.py
│ ├── models.py
│ ├── __pycache__
│ │ ├── forms.cpython-310.pyc
│ │ ├── __init__.cpython-310.pyc
│ │ ├── models.cpython-310.pyc
│ │ └── routes.cpython-310.pyc
│ ├── routes.py
│ ├── static
│ │ ├── main.css
│ │ └── profile_pics
│ │ └── default.jpg
│ └── templates
│ ├── about.html
│ ├── account.html
│ ├── create_post.html
│ ├── home.html
│ ├── layout.html
│ ├── login.html
│ ├── post.html
│ └── register.html
├── instance
│ └── site.db
├── requirements.txt
└── run.py
Can anyone suggest me a free platform
/r/flask
https://redd.it/1302nwq
Hi everyone I'm a software engineering student and I need help to deploy my blog application that I recently build with flask and it's my first ever project in web development. The problem is that I use a package structure :
├── flaskblog
│ ├── forms.py
│ ├── __init__.py
│ ├── models.py
│ ├── __pycache__
│ │ ├── forms.cpython-310.pyc
│ │ ├── __init__.cpython-310.pyc
│ │ ├── models.cpython-310.pyc
│ │ └── routes.cpython-310.pyc
│ ├── routes.py
│ ├── static
│ │ ├── main.css
│ │ └── profile_pics
│ │ └── default.jpg
│ └── templates
│ ├── about.html
│ ├── account.html
│ ├── create_post.html
│ ├── home.html
│ ├── layout.html
│ ├── login.html
│ ├── post.html
│ └── register.html
├── instance
│ └── site.db
├── requirements.txt
└── run.py
Can anyone suggest me a free platform
/r/flask
https://redd.it/1302nwq
Speeding up a Django view from 1000ms to <300ms
https://buttondown.email/blog/speeding-up-a-django-view
/r/django
https://redd.it/12zxusx
https://buttondown.email/blog/speeding-up-a-django-view
/r/django
https://redd.it/12zxusx
Buttondown
Speeding up a Django view
Step by step insights into cutting the email view's TTFB by 70%
Best practice for postgres partitioning
Hey all!
I am looking for the best libary to work with postgres (13.X +) partitioning,
I have used until now 'django-pg-partitioning' but it is no longer maintned and not supported in newer djagno versions.
I am familiar with 'django-postgres-extra' but I have a problem with this package since it generates automatically the 'default' partition and can only be removed manually from the migrations (or am I missing something?)
Thank you all.
/r/django
https://redd.it/130bwrw
Hey all!
I am looking for the best libary to work with postgres (13.X +) partitioning,
I have used until now 'django-pg-partitioning' but it is no longer maintned and not supported in newer djagno versions.
I am familiar with 'django-postgres-extra' but I have a problem with this package since it generates automatically the 'default' partition and can only be removed manually from the migrations (or am I missing something?)
Thank you all.
/r/django
https://redd.it/130bwrw
Reddit
r/django on Reddit: Best practice for postgres partitioning
Posted by u/SnooPredictions8336 - No votes and no comments
Automatically Open Notebooks
Hey everyone, I'm fairly new to Jupyter Notebooks, but I love them! I've been using one to keep track of things I find tricky while I'm learning F#. Does anyone know of an extension or setting that would allow me to have quick access to my notebooks without having to go and open it every time I open a new folder? I'm doing some training through the Exercism website and doing the challenges locally. Let me know if you have any ideas!
Thanks!
/r/JupyterNotebooks
https://redd.it/12zvl8o
Hey everyone, I'm fairly new to Jupyter Notebooks, but I love them! I've been using one to keep track of things I find tricky while I'm learning F#. Does anyone know of an extension or setting that would allow me to have quick access to my notebooks without having to go and open it every time I open a new folder? I'm doing some training through the Exercism website and doing the challenges locally. Let me know if you have any ideas!
Thanks!
/r/JupyterNotebooks
https://redd.it/12zvl8o
Reddit
r/JupyterNotebooks on Reddit: Automatically Open Notebooks
Posted by u/Interesting-Editor85 - 1 vote and no comments
Thursday Daily Thread: Python Careers, Courses, and Furthering Education!
Discussion of using Python in a professional environment, getting jobs in Python as well as ask questions about courses to further your python education!
This thread is not for recruitment, please see r/PythonJobs or the thread in the sidebar for that.
/r/Python
https://redd.it/1303x3j
Discussion of using Python in a professional environment, getting jobs in Python as well as ask questions about courses to further your python education!
This thread is not for recruitment, please see r/PythonJobs or the thread in the sidebar for that.
/r/Python
https://redd.it/1303x3j
Reddit
r/Python on Reddit: Thursday Daily Thread: Python Careers, Courses, and Furthering Education!
Posted by u/Im__Joseph - 1 vote and no comments
How long did it take you to code by second nature?
I once read that programmers will get to a place where they’ll be able to open an IDE and start working on a project at the same speed in which it takes a person to open excel and start building a table, how long did it take you to get there?
I am at that point using SQL, where I can open an IDE and starting building what I need without thinking too much but it’s hard to imagine I’ll ever get there with Python. I know there’s different packages, modules, and etc. but excluding the complex things, how long did it take you to get to a point where you could open an IDE and starting putting code together like it’s second nature?
/r/Python
https://redd.it/13084ts
I once read that programmers will get to a place where they’ll be able to open an IDE and start working on a project at the same speed in which it takes a person to open excel and start building a table, how long did it take you to get there?
I am at that point using SQL, where I can open an IDE and starting building what I need without thinking too much but it’s hard to imagine I’ll ever get there with Python. I know there’s different packages, modules, and etc. but excluding the complex things, how long did it take you to get to a point where you could open an IDE and starting putting code together like it’s second nature?
/r/Python
https://redd.it/13084ts
Reddit
r/Python on Reddit: How long did it take you to code by second nature?
Posted by u/MisterPico33 - 6 votes and 13 comments
Python + containerd? Who might be interested?
There is currently only one poorly maintained (if at all) Python binding for the containerd API:
https://pypi.org/project/contain...
I'd rather not build on it.
I would like to have a similar convenient wrapper for containerd just like the Docker Engine API: https://pypi.org/project/docker/
Who else would be interested in such a package?
/r/Python
https://redd.it/130dev3
There is currently only one poorly maintained (if at all) Python binding for the containerd API:
https://pypi.org/project/contain...
I'd rather not build on it.
I would like to have a similar convenient wrapper for containerd just like the Docker Engine API: https://pypi.org/project/docker/
Who else would be interested in such a package?
/r/Python
https://redd.it/130dev3
PyPI
containerd
containerd API for Python
Help me JWT token
I’m using Jwt in my flask app and I set the refresh_token to be 60mins and everything is all good but after the time is over and I’m still using same token it throws internal server error and have done all I could to catch the error and return token expire to client but nothing works out even chatgpt can’t help
/r/flask
https://redd.it/1306mfl
I’m using Jwt in my flask app and I set the refresh_token to be 60mins and everything is all good but after the time is over and I’m still using same token it throws internal server error and have done all I could to catch the error and return token expire to client but nothing works out even chatgpt can’t help
/r/flask
https://redd.it/1306mfl
Reddit
r/flask on Reddit: Help me JWT token
Posted by u/Abiorh - 3 votes and 11 comments
D Simple Questions Thread
Please post your questions here instead of creating a new thread. 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.
Thanks to everyone for answering questions in the previous thread!
/r/MachineLearning
https://redd.it/12wcr8i
Please post your questions here instead of creating a new thread. 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.
Thanks to everyone for answering questions in the previous thread!
/r/MachineLearning
https://redd.it/12wcr8i
Reddit
r/MachineLearning on Reddit: [D] Simple Questions Thread
Posted by u/AutoModerator - 22 votes and 14 comments
GitHub - csgoh/roadmapper: Roadmapper - A Roadmap as Code (Rac) python library. Generate professional roadmap diagram using python code.
https://github.com/csgoh/roadmapper
/r/Python
https://redd.it/130hpn4
https://github.com/csgoh/roadmapper
/r/Python
https://redd.it/130hpn4
GitHub
GitHub - csgoh/roadmapper: Roadmapper - A Roadmap as Code (Rac) python library. Generate professional roadmap diagram using python…
Roadmapper - A Roadmap as Code (Rac) python library. Generate professional roadmap diagram using python code. - csgoh/roadmapper
[P] Godot+RWKV standalone prebuilt binary (ubuntu/nvidia)
# RWKV+Godot
## What
### Godot
The Godot Engine is a free, all-in-one, cross-platform game engine that makes it easy for you to create 2D and 3D games.
### RWKV
RWKV is an RNN with Transformer-level LLM performance, which can also be directly trained like a GPT transformer (parallelizable). And it's 100% attention-free. You only need the hidden state at position t to compute the state at position t+1.
### RWKV-CPP-CUDA
RWKV-CPP-CUDA is a c++/cuda library I created that implements the RWKV inference code in pure cuda. This allows for compiled code with no torch or python dependencies, while allowing the full use of GPU acceleration.
The code implements 8bit inference, allowing for quick and light inference.
### Godot+RWKV
Godot+RWKV is a Godot module that I developed using RWKV-CPP-CUDA, and allows the development of games and programs using RWKV to be developed and distributed using godot, without the need to install complex environments and libraries, for both developers and consumers.
## Why
* I felt I could achieve it
* Its something thats needed to advance the use of AI in consumer devices
* The lols
* Attention, because I didnt get much growing up, and RWKV has none
* ADHD hyperfocus
## Where
[Module Repository](https://github.com/harrisonvanderbyl/godot-rwkv)
[RWKV standalone c++/cuda library](https://github.com/harrisonvanderbyl/rwkv-cpp-cuda)
[Prebuilt Godot Executable](https://github.com/harrisonvanderbyl/godot-rwkv/actions/runs/4816463552)
[Model Converter](https://github.com/harrisonvanderbyl/rwkv-cpp-cuda/tree/main/converter)
[Tokenizer Files](https://github.com/harrisonvanderbyl/rwkv-cpp-cuda/tree/main/include/rwkv/tokenizer/vocab)
[Unconverted Models : 14/7/3/1.5B finetuned
/r/MachineLearning
https://redd.it/130e31o
# RWKV+Godot
## What
### Godot
The Godot Engine is a free, all-in-one, cross-platform game engine that makes it easy for you to create 2D and 3D games.
### RWKV
RWKV is an RNN with Transformer-level LLM performance, which can also be directly trained like a GPT transformer (parallelizable). And it's 100% attention-free. You only need the hidden state at position t to compute the state at position t+1.
### RWKV-CPP-CUDA
RWKV-CPP-CUDA is a c++/cuda library I created that implements the RWKV inference code in pure cuda. This allows for compiled code with no torch or python dependencies, while allowing the full use of GPU acceleration.
The code implements 8bit inference, allowing for quick and light inference.
### Godot+RWKV
Godot+RWKV is a Godot module that I developed using RWKV-CPP-CUDA, and allows the development of games and programs using RWKV to be developed and distributed using godot, without the need to install complex environments and libraries, for both developers and consumers.
## Why
* I felt I could achieve it
* Its something thats needed to advance the use of AI in consumer devices
* The lols
* Attention, because I didnt get much growing up, and RWKV has none
* ADHD hyperfocus
## Where
[Module Repository](https://github.com/harrisonvanderbyl/godot-rwkv)
[RWKV standalone c++/cuda library](https://github.com/harrisonvanderbyl/rwkv-cpp-cuda)
[Prebuilt Godot Executable](https://github.com/harrisonvanderbyl/godot-rwkv/actions/runs/4816463552)
[Model Converter](https://github.com/harrisonvanderbyl/rwkv-cpp-cuda/tree/main/converter)
[Tokenizer Files](https://github.com/harrisonvanderbyl/rwkv-cpp-cuda/tree/main/include/rwkv/tokenizer/vocab)
[Unconverted Models : 14/7/3/1.5B finetuned
/r/MachineLearning
https://redd.it/130e31o
GitHub
GitHub - harrisonvanderbyl/godot-rwkv: RWKV godot interface module
RWKV godot interface module. Contribute to harrisonvanderbyl/godot-rwkv development by creating an account on GitHub.
MicroPython v1.20.0
https://github.com/micropython/micropython/releases/tag/v1.20.0
/r/Python
https://redd.it/130tbjh
https://github.com/micropython/micropython/releases/tag/v1.20.0
/r/Python
https://redd.it/130tbjh
GitHub
Release New mip package manager, compressed type structs and Pico W support · micropython/micropython
This release of MicroPython introduces a new lightweight package manager called mip, which uses a custom protocol to query and install packages that is optimised for embedded systems. It is intend...