Is it just me or did the creators of the Python QT5 GUI library miss a golden opportunity to call the package QtPy?
/r/Python
https://redd.it/xykohy
/r/Python
https://redd.it/xykohy
reddit
Is it just me or did the creators of the Python QT5 GUI library...
Posted in r/Python by u/UpAllNate • 242 points and 44 comments
Colab/jupyter hub/google drive/github?
I frequently switch between two devices, one windows and another Mac. I'm wondering what the best way to store my jupyter notebooks would be. The code is all fairly light. I'm just reading in data and graphing it. The notebook will be single-user.
The code runs significantly slower on google Colab than if I run them on my local machines, but nothing unbearable, and speed isn't a huge issue. That said, fast wall times are always better. I also haven't fully dug deep into Colab yet so IDK how it compares with standard jupyter in terms of functionality. Most online comparisons emphasize on ML capabilities, but again I'm not doing anything that fancy.
I briefly read up on jupyter hub, but I haven't tried it out yet. I only have a linux machine with crappy hardware that's up 24-7, and I'm often not on the same internet as the linux machine, so I'd probably have to tailscale back. I can't setup port forwarding with my internet administration privileges.
The other alternatives are to store the jupyter notebooks either on google drive and mount it to my local devices, or to push the code to github and pull before every use. I
/r/IPython
https://redd.it/xynkpi
I frequently switch between two devices, one windows and another Mac. I'm wondering what the best way to store my jupyter notebooks would be. The code is all fairly light. I'm just reading in data and graphing it. The notebook will be single-user.
The code runs significantly slower on google Colab than if I run them on my local machines, but nothing unbearable, and speed isn't a huge issue. That said, fast wall times are always better. I also haven't fully dug deep into Colab yet so IDK how it compares with standard jupyter in terms of functionality. Most online comparisons emphasize on ML capabilities, but again I'm not doing anything that fancy.
I briefly read up on jupyter hub, but I haven't tried it out yet. I only have a linux machine with crappy hardware that's up 24-7, and I'm often not on the same internet as the linux machine, so I'd probably have to tailscale back. I can't setup port forwarding with my internet administration privileges.
The other alternatives are to store the jupyter notebooks either on google drive and mount it to my local devices, or to push the code to github and pull before every use. I
/r/IPython
https://redd.it/xynkpi
reddit
Colab/jupyter hub/google drive/github?
I frequently switch between two devices, one windows and another Mac. I'm wondering what the best way to store my jupyter notebooks would be. The...
I wrote a document generator for YAML files in Python
I wrote C# for years, and this is one of my first Python projects that is not a fork.
​
It started as a thought experiment, if OpenSearch can generated documentation automatically for configuration files in YAML, like JavaDoc or doxygen. I proposed this idea and tried to come up with a POC. And this is it. You can have a check at the short Readme about how it works.
​
https://github.com/zbalkan/yaml-docs
/r/Python
https://redd.it/xyebbv
I wrote C# for years, and this is one of my first Python projects that is not a fork.
​
It started as a thought experiment, if OpenSearch can generated documentation automatically for configuration files in YAML, like JavaDoc or doxygen. I proposed this idea and tried to come up with a POC. And this is it. You can have a check at the short Readme about how it works.
​
https://github.com/zbalkan/yaml-docs
/r/Python
https://redd.it/xyebbv
GitHub
GitHub - zbalkan/yaml-docs: JavaDoc or doxygen for YAML
JavaDoc or doxygen for YAML. Contribute to zbalkan/yaml-docs development by creating an account on GitHub.
rendering a notebook with RTL language
Hi all,
​
I'd like to know if there is a way to render a notebook into an html doc with an RTL language?
​
I've added
​
hope someone can help me.
/r/JupyterNotebooks
https://redd.it/wb9gfz
Hi all,
​
I'd like to know if there is a way to render a notebook into an html doc with an RTL language?
​
I've added
<div dir="rtl" lang="he" xml:lang="he"> to the markdown cells but it's just rendering with the tags.. nothing else..​
hope someone can help me.
/r/JupyterNotebooks
https://redd.it/wb9gfz
reddit
rendering a notebook with RTL language
Hi all, I'd like to know if there is a way to render a notebook into an html doc with an RTL language? I've added `<div...
A Rookie SEO Question
Let's suppose I am building a catalog website (e.g., e-commerce, real estate listings, electronic library, etc.)
In the real estate example, I may have three tables in my database: info about the house, the neighborhood, and the county the house is in.
When a user visits the website, s/he enters an address on the main page, and on the results page, s/he is returned aggregated and summarized data from the tables mentioned above.
This part is fairly straightforward, but I don't understand how to make search engines index this data. If the result pages only exist when someone is sending a request, how can I ensure that when people search for the same house on google, they see the page on my website that includes information about that house?
I guess I can create pages for everything house in the database and store them on the server, but it doesn't sound like the best solution, does it?
Please let me know what you guys think.
/r/flask
https://redd.it/xyyrzv
Let's suppose I am building a catalog website (e.g., e-commerce, real estate listings, electronic library, etc.)
In the real estate example, I may have three tables in my database: info about the house, the neighborhood, and the county the house is in.
When a user visits the website, s/he enters an address on the main page, and on the results page, s/he is returned aggregated and summarized data from the tables mentioned above.
This part is fairly straightforward, but I don't understand how to make search engines index this data. If the result pages only exist when someone is sending a request, how can I ensure that when people search for the same house on google, they see the page on my website that includes information about that house?
I guess I can create pages for everything house in the database and store them on the server, but it doesn't sound like the best solution, does it?
Please let me know what you guys think.
/r/flask
https://redd.it/xyyrzv
reddit
A Rookie SEO Question
Let's suppose I am building a catalog website (e.g., e-commerce, real estate listings, electronic library, etc.) In the real estate example, I...
This media is not supported in your browser
VIEW IN TELEGRAM
[R] VToonify: Controllable High-Resolution Portrait Video Style Transfer
https://redd.it/xyxe8w
@pythondaily
https://redd.it/xyxe8w
@pythondaily
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/xz7dtg
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/xz7dtg
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...
I wrote a filter for Django Compressor that removes unused CSS classes and makes your СSS files much smaller
I really enjoy simple, lightweight, and fast websites so I always try to keep my CSS and JS files as small as possible. I also like using Bootstrap for my projects since it helps to build a prototype to test the idea without much effort. However, Bootstrap and Tailwind CSS files are pretty large which directly influences the loading and render time of a website. To solve the problem, I wrote a filter for the amazing app Django Compressor that uses the PurgeCSS tool to remove unused CSS classes from your files and reduce the size of your CSS files size several times.
The filter automatically discovers all your Django templates, finds which classes are not used, and removes them. Thanks to the Django Compressor, it happens on the fly, so you don't need to manually run the PurgeCSS tool and copy/paste optimized styles every time you changed your styles. Moreover, Django Compressor allows you to use the filter alongside other filters, so you can also compile your SCSS files, compress CSS files, etc.
So far I tested it on one of my websites and it reduced my CSS files from \~200 Kb to 60 Kb (I use almost all Bootstrap components
/r/django
https://redd.it/xys6y4
I really enjoy simple, lightweight, and fast websites so I always try to keep my CSS and JS files as small as possible. I also like using Bootstrap for my projects since it helps to build a prototype to test the idea without much effort. However, Bootstrap and Tailwind CSS files are pretty large which directly influences the loading and render time of a website. To solve the problem, I wrote a filter for the amazing app Django Compressor that uses the PurgeCSS tool to remove unused CSS classes from your files and reduce the size of your CSS files size several times.
The filter automatically discovers all your Django templates, finds which classes are not used, and removes them. Thanks to the Django Compressor, it happens on the fly, so you don't need to manually run the PurgeCSS tool and copy/paste optimized styles every time you changed your styles. Moreover, Django Compressor allows you to use the filter alongside other filters, so you can also compile your SCSS files, compress CSS files, etc.
So far I tested it on one of my websites and it reduced my CSS files from \~200 Kb to 60 Kb (I use almost all Bootstrap components
/r/django
https://redd.it/xys6y4
reddit
I wrote a filter for Django Compressor that removes unused CSS...
I really enjoy simple, lightweight, and fast websites so I always try to keep my CSS and JS files as small as possible. I also like using...
If you're a beginner interested in data science and machine learning, I recently produced a video series that goes through all of the major algorithms and their implementations in Python! I put a lot of work into each tutorial, so hopefully this helps out!
https://youtube.com/playlist?list=PLvICEeb-TZEHKkojcv1_POKPrCwlsEnsI
/r/Python
https://redd.it/xyyj9t
https://youtube.com/playlist?list=PLvICEeb-TZEHKkojcv1_POKPrCwlsEnsI
/r/Python
https://redd.it/xyyj9t
CadQuery: Programming 3D objects in Python
https://california18.com/cadquery-programming-3d-objects-in-python/7251792022/
/r/IPython
https://redd.it/xz1fms
https://california18.com/cadquery-programming-3d-objects-in-python/7251792022/
/r/IPython
https://redd.it/xz1fms
California18
CadQuery: Programming 3D objects in Python - California18
Many already know and use OpenSCAD, but its limitations and the non-standard programming language are not for everyone. CadQuery uses Python and offers
Compatibility between Colab ipynb and local Jupyter notebook?
I've been using Google's Colab environment for a coursework - and my understanding is it's a mostly reskinned version of Jupyter notebook.
Can I assume ipynb notebooks exported from Colab to be compatible with my machine's local Jupyter installation? Are there known pitfalls or incompatibilities I should be aware of?
​
Thank you!
/r/IPython
https://redd.it/xyn9k5
I've been using Google's Colab environment for a coursework - and my understanding is it's a mostly reskinned version of Jupyter notebook.
Can I assume ipynb notebooks exported from Colab to be compatible with my machine's local Jupyter installation? Are there known pitfalls or incompatibilities I should be aware of?
​
Thank you!
/r/IPython
https://redd.it/xyn9k5
reddit
Compatibility between Colab ipynb and local Jupyter notebook?
I've been using Google's Colab environment for a coursework - and my understanding is it's a mostly reskinned version of Jupyter notebook. Can...
Can you rate my project, and tell am I ready for internship or junior position?
Here is my django project, I didn't know what to do and just create some social network app.
Please just tell me what did i do wrong and what should i learn
/r/django
https://redd.it/xzhtei
Here is my django project, I didn't know what to do and just create some social network app.
Please just tell me what did i do wrong and what should i learn
/r/django
https://redd.it/xzhtei
GitHub
GitHub - zhumagulovt/social: Backend for social network app or website
Backend for social network app or website. Contribute to zhumagulovt/social development by creating an account on GitHub.
I’m getting this import error when trying to open Jupyter. When I closed it, some files were still running so I’m not sure if that affected this. Can anyone help?
/r/JupyterNotebooks
https://redd.it/xz80nz
/r/JupyterNotebooks
https://redd.it/xz80nz
How to deploy django-tenants to production
I'm building a startup SaaS software and I decided to use django-tenants for my database wherein users can have their own schema and access din via schena domain. I tried to deploy it to heroku and railway.app. i also have hosted database from railway.app.
But I'm having some troubles using the domain schema. How to fix this?
/r/django
https://redd.it/xzsb47
I'm building a startup SaaS software and I decided to use django-tenants for my database wherein users can have their own schema and access din via schena domain. I tried to deploy it to heroku and railway.app. i also have hosted database from railway.app.
But I'm having some troubles using the domain schema. How to fix this?
/r/django
https://redd.it/xzsb47
reddit
How to deploy django-tenants to production
I'm building a startup SaaS software and I decided to use django-tenants for my database wherein users can have their own schema and access din...
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/y0069z
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/y0069z
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...
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/xznpoh
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/xznpoh
reddit
[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...
django-pghistory: Track historical events to Django models using Postgres triggers.
https://github.com/Opus10/django-pghistory
/r/django
https://redd.it/y04dzy
https://github.com/Opus10/django-pghistory
/r/django
https://redd.it/y04dzy
GitHub
GitHub - Opus10/django-pghistory: Track historical events to Django models using Postgres triggers.
Track historical events to Django models using Postgres triggers. - Opus10/django-pghistory
Analyzing cloud infrastructure metrics with Jupyter Notebook
We built a library that allows for the visualization and exploration of infrastructure metrics, collected via a cloud asset inventory.
https://resoto.com/blog/2022/05/31/resoto-meets-jupyter-notebook
It's hard to understand what's going on in your infrastructure if you're dealing with 100s of Ks of resources.
This notebook is a flexible way to track and analyze trends in the state of your entire infrastructure, and then drill down into indvidiual problematic resources.
For example, the heatmap in the image depicts the number of instances per core, per account.
The y-axis represents the number of cores per instance, while account IDs are listed along x-axis. The color of the heatmap cell indicates the number of instances with the given number of cores; the brighter the color, the greater the number.
Now you can yell at the developers that spin up expensive resources.
/r/JupyterNotebooks
https://redd.it/w9bhi3
We built a library that allows for the visualization and exploration of infrastructure metrics, collected via a cloud asset inventory.
https://resoto.com/blog/2022/05/31/resoto-meets-jupyter-notebook
It's hard to understand what's going on in your infrastructure if you're dealing with 100s of Ks of resources.
This notebook is a flexible way to track and analyze trends in the state of your entire infrastructure, and then drill down into indvidiual problematic resources.
For example, the heatmap in the image depicts the number of instances per core, per account.
The y-axis represents the number of cores per instance, while account IDs are listed along x-axis. The color of the heatmap cell indicates the number of instances with the given number of cores; the brighter the color, the greater the number.
Now you can yell at the developers that spin up expensive resources.
/r/JupyterNotebooks
https://redd.it/w9bhi3
Resoto
Resoto Meets Jupyter Notebook | Resoto by Some Engineering Inc.
We recently released Resoto Notebook, a library that allows for the visualization and exploration of the Resoto graph interactively using Jupyter Notebook.
is there any difference between using string.format() or an fstring?
Every time i see someone use format() instead of an fstring i get confused considering fstring has much more readability and is a lot more merciful on the programmer when there is more than 1 variable going into the string.
/r/Python
https://redd.it/xzsgz2
Every time i see someone use format() instead of an fstring i get confused considering fstring has much more readability and is a lot more merciful on the programmer when there is more than 1 variable going into the string.
/r/Python
https://redd.it/xzsgz2
reddit
is there any difference between using string.format() or an fstring?
Every time i see someone use format() instead of an fstring i get confused considering fstring has much more readability and is a lot more...