Is it possible to create seasonal plots in jupyter with pandas?
Im trying to create seasonal plots like ggseason() and ggsubseries in R-studio?
/r/JupyterNotebooks
https://redd.it/x1yyt1
Im trying to create seasonal plots like ggseason() and ggsubseries in R-studio?
/r/JupyterNotebooks
https://redd.it/x1yyt1
reddit
Is it possible to create seasonal plots in jupyter with pandas?
Im trying to create seasonal plots like ggseason() and ggsubseries in R-studio?
PyUpdater is no longer maintained. What now? - Tufup: automated updates for stand-alone Python applications.
Hello world! I want to recommend a wonderful open-source package called **Tufup.** It's a simple software updater for stand-alone Python *applications*. This package was created as a replacement for **PyUpdater**, given the fact that [PyUpdater has been archived and is no longer maintained](https://github.com/Digital-Sapphire/PyUpdater#this-is-the-end). However, whereas **PyUpdater** implements a *custom* security mechanism to ensure authenticity (and integrity) of downloaded update files, **Tufup** is built on top of the security mechanisms implemented in the [python-tuf](https://github.com/theupdateframework/python-tuf) package, a.k.a. **TUF** (The Update Framework). By entrusting the design of security measures to security professionals, **Tufup** can focus on high-level tools.
Do note that, although **Tufup** offers the same basic functionality as **PyUpdater**, there are some differences:
* **Tufup** uses [python-tuf](https://github.com/theupdateframework/python-tuf) to secure the update process. This means you'll need to understand a little bit about the principles behind [TUF](https://theupdateframework.io/overview/). You can tailor the level of security to your needs, from highly secure, to slightly secure.
* **PyUpdater** was tightly integrated with [PyInstaller](https://pyinstaller.org/en/stable/), but **Tufup** is not. You *can* use **Tufup** with **PyInstaller**, as illustrated in the [tufup-example](https://github.com/dennisvang/tufup-example), but it is not required. You can also use it with any other packaging method, or you can even distribute a plain python script or just any directory of files.
*
/r/Python
https://redd.it/xsu2tn
Hello world! I want to recommend a wonderful open-source package called **Tufup.** It's a simple software updater for stand-alone Python *applications*. This package was created as a replacement for **PyUpdater**, given the fact that [PyUpdater has been archived and is no longer maintained](https://github.com/Digital-Sapphire/PyUpdater#this-is-the-end). However, whereas **PyUpdater** implements a *custom* security mechanism to ensure authenticity (and integrity) of downloaded update files, **Tufup** is built on top of the security mechanisms implemented in the [python-tuf](https://github.com/theupdateframework/python-tuf) package, a.k.a. **TUF** (The Update Framework). By entrusting the design of security measures to security professionals, **Tufup** can focus on high-level tools.
Do note that, although **Tufup** offers the same basic functionality as **PyUpdater**, there are some differences:
* **Tufup** uses [python-tuf](https://github.com/theupdateframework/python-tuf) to secure the update process. This means you'll need to understand a little bit about the principles behind [TUF](https://theupdateframework.io/overview/). You can tailor the level of security to your needs, from highly secure, to slightly secure.
* **PyUpdater** was tightly integrated with [PyInstaller](https://pyinstaller.org/en/stable/), but **Tufup** is not. You *can* use **Tufup** with **PyInstaller**, as illustrated in the [tufup-example](https://github.com/dennisvang/tufup-example), but it is not required. You can also use it with any other packaging method, or you can even distribute a plain python script or just any directory of files.
*
/r/Python
https://redd.it/xsu2tn
GitHub
GitHub - Digital-Sapphire/PyUpdater: Pyinstaller auto-update library
Pyinstaller auto-update library. Contribute to Digital-Sapphire/PyUpdater development by creating an account on GitHub.
Sunday Daily Thread: What's everyone working on this week?
Tell /r/python what you're working on this week! You can be bragging, grousing, sharing your passion, or explaining your pain. Talk about your current project or your pet project; whatever you want to share.
/r/Python
https://redd.it/xta3ka
Tell /r/python what you're working on this week! You can be bragging, grousing, sharing your passion, or explaining your pain. Talk about your current project or your pet project; whatever you want to share.
/r/Python
https://redd.it/xta3ka
reddit
Sunday Daily Thread: What's everyone working on this week?
Tell /r/python what you're working on this week! You can be bragging, grousing, sharing your passion, or explaining your pain. Talk about your...
Before posting your website to the sub, please change /admin to literally anything else.
A recent site posted here just did this.
People are assholes and could cause some problems for you if they have access to your admin page.
/admin is about as guessable as "password".
/literallyanythingelse has infinitely less probability of being guessed.
/r/django
https://redd.it/xtoku7
A recent site posted here just did this.
People are assholes and could cause some problems for you if they have access to your admin page.
/admin is about as guessable as "password".
/literallyanythingelse has infinitely less probability of being guessed.
/r/django
https://redd.it/xtoku7
reddit
Before posting your website to the sub, please change /admin to...
A recent site posted here just did this. People are assholes and could cause some problems for you if they have access to your admin...
Per object caching using django-cacheops, or django-cache-machine
I'm working on a project: multi-user, a very large database that grows daily, and some complex queries that do things like aggregations an sums on that data. The stack is Django and DRF and the users do queries like `api/customers/` where the list of customers might have some overlap between users if the two users are in the same group.
Is there a way to do per-object-caching on the data retrieved so that if 2 users in the same "group" do a query for "customers" the first time it happens with user#1 the API hits the DB, but the second time when user#2 (in the same "group") it is a cached query and thus much faster? Also I'd like to do aggregations or filtering on the cached version when possible rather than doing an SQL query with the filter parameters.
Is this possible with django-cacheops or django-cache-machine
/r/django
https://redd.it/xtpkyb
I'm working on a project: multi-user, a very large database that grows daily, and some complex queries that do things like aggregations an sums on that data. The stack is Django and DRF and the users do queries like `api/customers/` where the list of customers might have some overlap between users if the two users are in the same group.
Is there a way to do per-object-caching on the data retrieved so that if 2 users in the same "group" do a query for "customers" the first time it happens with user#1 the API hits the DB, but the second time when user#2 (in the same "group") it is a cached query and thus much faster? Also I'd like to do aggregations or filtering on the cached version when possible rather than doing an SQL query with the filter parameters.
Is this possible with django-cacheops or django-cache-machine
/r/django
https://redd.it/xtpkyb
reddit
Per object caching using django-cacheops, or django-cache-machine
I'm working on a project: multi-user, a very large database that grows daily, and some complex queries that do things like aggregations an sums on...
Flask on Porkbun
hello its my first time hosting a website
i cant host Flask to Porkbun domain ?
/r/flask
https://redd.it/xtmmfg
hello its my first time hosting a website
i cant host Flask to Porkbun domain ?
/r/flask
https://redd.it/xtmmfg
reddit
Flask on Porkbun
hello its my first time hosting a website i cant host Flask to Porkbun domain ?
I wrote a Python script which can generate any city from the real world in Minecraft
Hi there! Using this Python script, you can generate any city from the real world in Minecraft. I worked on that project for a few months and finally released it as open source. I appreciate any kind of feedback!
Youtube Devlog: https://www.youtube.com/watch?v=5tOvtZG0\_6k
Github Repository: https://github.com/louis-e/arnis
/r/Python
https://redd.it/xtmxsp
Hi there! Using this Python script, you can generate any city from the real world in Minecraft. I worked on that project for a few months and finally released it as open source. I appreciate any kind of feedback!
Youtube Devlog: https://www.youtube.com/watch?v=5tOvtZG0\_6k
Github Repository: https://github.com/louis-e/arnis
/r/Python
https://redd.it/xtmxsp
YouTube
I Made An Algorithm To Rebuild The Earth In Minecraft | Devlog
Source Code on Github: https://github.com/louis-e/arnis
I wrote a Python script which can generate any city from the real world in Minecraft! In this video I explain in detail how it works.
Feel free to subscribe if you like the content and want to see more!…
I wrote a Python script which can generate any city from the real world in Minecraft! In this video I explain in detail how it works.
Feel free to subscribe if you like the content and want to see more!…
Async proxy view for map layers in my app - is this a bad idea?
We have a mature Django app used as a user and sort of data management system (geospatial data layers). The app currently only tells our frontend which users are authenticated and gives them a list of authorized layers that is served by another "dumb" app (QGISServer). I say dumb since it doesn't know about our users. Just a nginx sub request Auth system is used.
Now we will need to add other map servers, which my require their own authentication that can't be client side, so my plan is to create a new Django proxy view. This view will deal with authentication and authorization of layers using async ORM as well as act as a proxy auth and cache to external servers. It will use async aiohttp to fetch the response tile from the mapserver, cache it in redis, and return it.
The problem is that map tiles get requested by the frontend Open Layers easily 10 at a time when you pan. And it can take a second to render the tile, download it to the proxy and then push to the client. 10 of these at a time would kill the app for a second if it had 10 wsgi
/r/djangolearning
https://redd.it/xtk4a5
We have a mature Django app used as a user and sort of data management system (geospatial data layers). The app currently only tells our frontend which users are authenticated and gives them a list of authorized layers that is served by another "dumb" app (QGISServer). I say dumb since it doesn't know about our users. Just a nginx sub request Auth system is used.
Now we will need to add other map servers, which my require their own authentication that can't be client side, so my plan is to create a new Django proxy view. This view will deal with authentication and authorization of layers using async ORM as well as act as a proxy auth and cache to external servers. It will use async aiohttp to fetch the response tile from the mapserver, cache it in redis, and return it.
The problem is that map tiles get requested by the frontend Open Layers easily 10 at a time when you pan. And it can take a second to render the tile, download it to the proxy and then push to the client. 10 of these at a time would kill the app for a second if it had 10 wsgi
/r/djangolearning
https://redd.it/xtk4a5
reddit
Async proxy view for map layers in my app - is this a bad idea?
We have a mature Django app used as a user and sort of data management system (geospatial data layers). The app currently only tells our frontend...
Monday Daily Thread: Project ideas!
Comment any project ideas beginner or advanced in this thread for others to give a try! If you complete one make sure to reply to the comment with how you found it and attach some source code! If you're looking for project ideas, you might be interested in checking out Al Sweigart's, "The Big Book of Small Python Projects" which provides a list of projects and the code to make them work.
/r/Python
https://redd.it/xu3v9h
Comment any project ideas beginner or advanced in this thread for others to give a try! If you complete one make sure to reply to the comment with how you found it and attach some source code! If you're looking for project ideas, you might be interested in checking out Al Sweigart's, "The Big Book of Small Python Projects" which provides a list of projects and the code to make them work.
/r/Python
https://redd.it/xu3v9h
reddit
Monday Daily Thread: Project ideas!
Comment any project ideas beginner or advanced in this thread for others to give a try! If you complete one make sure to reply to the comment with...
Created a Telegram bot to remotely control my windows PC
Read blog post here.
Code in github here.
​
​
https://preview.redd.it/t5r5gycoxlr91.jpg?width=1075&format=pjpg&auto=webp&s=54cbd74c3aeaad681f2734606dbb63a3ecd9f74b
/r/Python
https://redd.it/xum74e
Read blog post here.
Code in github here.
​
​
https://preview.redd.it/t5r5gycoxlr91.jpg?width=1075&format=pjpg&auto=webp&s=54cbd74c3aeaad681f2734606dbb63a3ecd9f74b
/r/Python
https://redd.it/xum74e
Ahmed-Blog
Remote control your Windows computer using Telegram
Updated on 23/01/2023 If you work in an office, you are probably told to always lock your computer before you go AFK as a measure of security. In my case, my colleagues will not hesitate to prank whoever forgets his screen unlocked as a punishment. I am a…
Hitting a learning wall at application factory pattern
After a month of doing this every day i’ve become really comfortable with setting up and deploying new flask apps and deploying them. I now understand the usage of blueprints, and while from an outer perspective I understand why an application factory would come in handy for large apps, I just cannot wrap my head around how the setup actually works. Every tutorial becomes so complicated very quickly and I can’t seem to find any simplified examples.
Looking for any recommended tutorials or tips to push through this wall.
/r/flask
https://redd.it/xuth2j
After a month of doing this every day i’ve become really comfortable with setting up and deploying new flask apps and deploying them. I now understand the usage of blueprints, and while from an outer perspective I understand why an application factory would come in handy for large apps, I just cannot wrap my head around how the setup actually works. Every tutorial becomes so complicated very quickly and I can’t seem to find any simplified examples.
Looking for any recommended tutorials or tips to push through this wall.
/r/flask
https://redd.it/xuth2j
reddit
Hitting a learning wall at application factory pattern
After a month of doing this every day i’ve become really comfortable with setting up and deploying new flask apps and deploying them. I now...
How does a single running instance of a Flask application handle multiple requests at once? Is it all async or multithreaded? Or handled by the webserver (NGINX, gunicorn, etc)?
Say I had a single Flask application running on an EC2 instance, and 300+ requests were made from other machines at about the same time. How does Flask handle this? Does it spawn new threads and bounce control around?
/r/flask
https://redd.it/xv0js7
Say I had a single Flask application running on an EC2 instance, and 300+ requests were made from other machines at about the same time. How does Flask handle this? Does it spawn new threads and bounce control around?
/r/flask
https://redd.it/xv0js7
reddit
How does a single running instance of a Flask application handle...
Say I had a single Flask application running on an EC2 instance, and 300+ requests were made from other machines at about the same time. How does...
Problem viewing images using VSCODE on Apple M1
Does anyone having problems viewing images on Jupyter Notebooks using VSCODE? I am using 14" MacBook Pro , M1..
​
Here is a picture to show you what I am looking at when opening the same notebook using VSCODE (right) vs Jupyter-Lab (Left).
​
https://preview.redd.it/zmzni9roorr91.png?width=1920&format=png&auto=webp&s=dbbab9afb49b63283e9bf0777b4dd2904d907491
/r/JupyterNotebooks
https://redd.it/xum6n6
Does anyone having problems viewing images on Jupyter Notebooks using VSCODE? I am using 14" MacBook Pro , M1..
​
Here is a picture to show you what I am looking at when opening the same notebook using VSCODE (right) vs Jupyter-Lab (Left).
​
https://preview.redd.it/zmzni9roorr91.png?width=1920&format=png&auto=webp&s=dbbab9afb49b63283e9bf0777b4dd2904d907491
/r/JupyterNotebooks
https://redd.it/xum6n6
Tuesday Daily Thread: Advanced questions
Have some burning questions on advanced Python topics? Use this thread to ask more advanced questions related to Python.
If your question is a beginner question we hold a beginner Daily Thread tomorrow (Wednesday) where you can ask any question! We may remove questions here and ask you to resubmit tomorrow.
This thread may be fairly low volume in replies, if you don't receive a response we recommend looking at r/LearnPython or joining the Python Discord server at https://discord.gg/python where you stand a better chance of receiving a response.
/r/Python
https://redd.it/xuzlry
Have some burning questions on advanced Python topics? Use this thread to ask more advanced questions related to Python.
If your question is a beginner question we hold a beginner Daily Thread tomorrow (Wednesday) where you can ask any question! We may remove questions here and ask you to resubmit tomorrow.
This thread may be fairly low volume in replies, if you don't receive a response we recommend looking at r/LearnPython or joining the Python Discord server at https://discord.gg/python where you stand a better chance of receiving a response.
/r/Python
https://redd.it/xuzlry
Discord
Join the Python Discord Server!
We're a large community focused around the Python programming language. We believe that anyone can learn to code. | 412982 members
Collaborative Jupyter Whiteboards
I found a common occurrence in data science type of meetings is someone screen-shares their Jupyter notebook either by Zoom, Hangouts, or conference room display and then starts scrolling through it explaining their tables, plots, markdown, Latex, etc. When I want to ask a question about a plot that the presenter scrolled past, there's a lot of "can you scroll up a little, no too far, back down a little". If I want to point to an area of a plot or column in a table, I can do it in Zoom, but it's all out of place once the notebook is scrolled. Usually someone has to ask the presenter to zoom in to see some tiny Matplotlib font.
This led me to start looking into multiplayer versions of Jupyter that strive to be like Google Docs. There's proprietary ones like CoCalc and DeepNote, then there's open-source work underway to add real time collaboration to JupyterLab using Yjs. All of these are geared towards collaborative editing of the notebook code, but I really needed and saw a use for was collaborative viewing of the results contained in the notebook. Since notebooks usually have access to lots of valuable data, IT can
/r/JupyterNotebooks
https://redd.it/xvjtjd
I found a common occurrence in data science type of meetings is someone screen-shares their Jupyter notebook either by Zoom, Hangouts, or conference room display and then starts scrolling through it explaining their tables, plots, markdown, Latex, etc. When I want to ask a question about a plot that the presenter scrolled past, there's a lot of "can you scroll up a little, no too far, back down a little". If I want to point to an area of a plot or column in a table, I can do it in Zoom, but it's all out of place once the notebook is scrolled. Usually someone has to ask the presenter to zoom in to see some tiny Matplotlib font.
This led me to start looking into multiplayer versions of Jupyter that strive to be like Google Docs. There's proprietary ones like CoCalc and DeepNote, then there's open-source work underway to add real time collaboration to JupyterLab using Yjs. All of these are geared towards collaborative editing of the notebook code, but I really needed and saw a use for was collaborative viewing of the results contained in the notebook. Since notebooks usually have access to lots of valuable data, IT can
/r/JupyterNotebooks
https://redd.it/xvjtjd
reddit
Collaborative Jupyter Whiteboards
I found a common occurrence in data science type of meetings is someone screen-shares their Jupyter notebook either by Zoom, Hangouts, or...
Your all-time favorite Django youtube tutorial?
Looking for some suggestions!
/r/django
https://redd.it/xvd7fv
Looking for some suggestions!
/r/django
https://redd.it/xvd7fv
reddit
Your all-time favorite Django youtube tutorial?
Looking for some suggestions!
Can pylint be used for jupyter notebook projects?
Can pylint be used for jupyter notebook projects? If not is there another lint that gets the job done?
Appreciate the answers
/r/JupyterNotebooks
https://redd.it/xtzch6
Can pylint be used for jupyter notebook projects? If not is there another lint that gets the job done?
Appreciate the answers
/r/JupyterNotebooks
https://redd.it/xtzch6
reddit
Can pylint be used for jupyter notebook projects?
Can pylint be used for jupyter notebook projects? If not is there another lint that gets the job done? Appreciate the answers
Wednesday Daily Thread: Beginner questions
New to Python and have questions? Use this thread to ask anything about Python, there are no bad questions!
This thread may be fairly low volume in replies, if you don't receive a response we recommend looking at r/LearnPython or joining the Python Discord server at https://discord.gg/python where you stand a better chance of receiving a response.
/r/Python
https://redd.it/xvut41
New to Python and have questions? Use this thread to ask anything about Python, there are no bad questions!
This thread may be fairly low volume in replies, if you don't receive a response we recommend looking at r/LearnPython or joining the Python Discord server at https://discord.gg/python where you stand a better chance of receiving a response.
/r/Python
https://redd.it/xvut41
Discord
Join the Python Discord Server!
We're a large community focused around the Python programming language. We believe that anyone can learn to code. | 412982 members
%%time only displays wall time
Hello everyone I am having trouble measuring the CPU time taken by a function but the problem is as the title says. The cell magic command %%time only displays the wall time and does not display the CPU time.
Any suggestion would be really helpful.
Thank you.
/r/JupyterNotebooks
https://redd.it/xtdnhc
Hello everyone I am having trouble measuring the CPU time taken by a function but the problem is as the title says. The cell magic command %%time only displays the wall time and does not display the CPU time.
Any suggestion would be really helpful.
Thank you.
/r/JupyterNotebooks
https://redd.it/xtdnhc
reddit
%%time only displays wall time
Hello everyone I am having trouble measuring the CPU time taken by a function but the problem is as the title says. The cell magic command %%time...
Flask & Stripe Mini eCommerce - MIT / BS5 Design / No database / Products Saved in JSON files / VIDEO presentation in comments
https://github.com/app-generator/sample-flask-stripe
/r/flask
https://redd.it/xw5rek
https://github.com/app-generator/sample-flask-stripe
/r/flask
https://redd.it/xw5rek
GitHub
GitHub - app-generator/sample-flask-stripe: Flask Stripe Sample - Soft UI Design (Free Sample) | AppSeed
Flask Stripe Sample - Soft UI Design (Free Sample) | AppSeed - GitHub - app-generator/sample-flask-stripe: Flask Stripe Sample - Soft UI Design (Free Sample) | AppSeed