Python Daily
2.57K subscribers
1.48K photos
53 videos
2 files
38.9K links
Daily Python News
Question, Tips and Tricks, Best Practices on Python Programming Language
Find more reddit channels over at @r_channels
Download Telegram
hot

TILRAY INC2,900$28.1622+$2.4422+$2.4422

/r/IPython
https://redd.it/lfew2j
Ipython in the cloud?

Does anyone know of any ipython online websites that support sympy, scipy and matplotlib that can be used from tablet? I have found basic learn python websites but nothing advanced enough to what I want. Would even consider subscription service. Thanks.

/r/IPython
https://redd.it/lf3s1x
Some advice: will my setup be production ready?

Hi,

I'm a software developer of 1.5 years. I've just deployed my first django API for my small company solo into staging, and was looking for advice from others on how to make sure the app is absolutely safe and secure. The company is very small (6 people) and so I have to wear many hats. This is the first thing I've been solely responsible for, so I would like to make it through successfully.

It's a Django 3.0 application that is based on a Cookie Cutter template (that has three settings levels) that uses MongoDB (successfully) that's hosted on EC2 that at max should take about 500 requests a day for each consumer (only other servers). We expect the API right now only to have 1 consumer, and a few others on the way. I've set up HTTPS in Apache with LetsEncrypt. The database in MongoDB should **not** be externally visible, only available to localhost.

I've also set up Sentry for logging (which is just the best...), and I need to speak with my boss about purchasing the company plan since right now it is on the free version. I have EC2's dashboard for monitoring.

I know i need to do the following

/r/django
https://redd.it/lfd1l3
Can Jupyter Notebook be used with files saved on cloud, or computer only?

Do my Jupyter Notebook files have to be saved on my computer hard drive? Can they be saved on a cloud instead?

/r/JupyterNotebooks
https://redd.it/lfn7b8
Lazy load imports for jupyter notebooks

Usually, I have a ton of imports at the top of my notebooks which slows down my startup time. I created a dead-simple (less than 50 lines of code) jupyter extension that enables lazy imports, which only imports packages as needed. This enables rapid bootups and a faster workflow!

Check it out here: https://github.com/jungerm2/JupyterLazyLoader

Let me know what you think! Any help/contributions are welcome!

/r/IPython
https://redd.it/lezphk
D Low data regime, what are your moves?

Hi, it's more than a month now since i've started working on a Project.
Basically it can be viewed as a medical image classification task.

The main problem is the dataset size, actually its a huuge problem, (<100). I've tried with GANs, TL, some sort of analitycal ROI extraction to feed the net.

But onestly right now I'm running out of ideas.
What do you tipically do in these situations? What was the size of the smallest dataset you've been able to achieve some valid results?
Any advice on papers to read?

Thanks.

/r/MachineLearning
https://redd.it/lfpw1w
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/lfpln1
Writing a book on autonomous quadcopter projects? Latex vs Jupyter Book?

Hi, So I finished my masters in computer science with a focus on deep learning and computer vision. Now I want to write a book showcasing some useful and popular things in this field. Here's a small list of libraries that I use in some chapters:

1. Eigen (3D geometry, Linear algebra)
2. Sophus (3D geometry, Lie algebra)
3. Ceres Solver (3D geometry)
4. ROS (Robotics software)
5. OpenCV (computer vision)
6. Tensorflow (deep learning)
7. Pandas, numpy, matplotlib (Data science)

I want to explore concepts in papers and showcase examples and projects which use these libraries. In Latex, I can simply add a code block in `listing` environment. But I want the code to be executable so that users can try it out themselves. Can the top 4 libraries be used along with Jupyter book so that the code I specify (which is written in C++ 14 btw, not python) is executable? These libraries are installed natively and not in a conda (or virtual) environment.

/r/JupyterNotebooks
https://redd.it/lg0exy
Is there a way for Django to secure the connection to a Postgres DB using one of Postgres's supported authentication methods?

When Django uses the Postgres credentials configured in the settings..py file to connect to the DB, is there a way to secure this connection that Django provides?

Postgres's supported authentication methods

/r/django
https://redd.it/lfyxrs
PEP 634 (Structural Pattern Matching) is approved! Welcome match statement,
https://realworldpython.hashnode.dev/structural-pattern-matching-pep-634-in-python

/r/Python
https://redd.it/lfz5af
The 22 Most-Used Python Packages in The World

Hi Reddit, I assembled the **top 22 most used Python packages in the world** (medium, link bypasses the paywall).

I did some research and wrote about each of them. I had a lot of fun writing this. I'd love to hear your comments!

/r/Python
https://redd.it/lfzbcg
Sending full html link through rendertemplate?

Hi all,
It is possible to send an html link through flask render\
template?

\-----------------------
app.route('/site1')
def site1():


data = '<a href="/info?id=12345">12345</a>'
return render_template('site1.html', data=data)
\-----------------------
I've tested the above, but it comes out as a string and not recognized as a link.

I can send the data and format it as <a href="/info?id={data}">{data}</a> within the html, but i'm using a table loop and the first entry is an id that I'd also like to be a link for drill down purposes. Fairly new to web design and hope I'm asking the question accurately.

Thank you!

/r/flask
https://redd.it/lg68xd
Django as a pure backend independent of the frontend or Django alongside the frontend when using React.

I've already built some parts of the frontend using React, and I was wondering now that I am going to start building the backend, which of the two approaches is more suitable.

&#x200B;

I know that both approaches are useable, but I am not sure about the trade-offs between using Django as an independent backend or using react as an app of a Django project.

&#x200B;

I am hoping that someone could point of the trade-offs between the two approaches or provide some resource to learn about the topic if possible.

&#x200B;

Thank you

/r/djangolearning
https://redd.it/lg50u2
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/lgh38f