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
What’s will be new in matplotlib — Matplotlib 2.0.0rc2 documentation
http://matplotlib.org/2.0.0rc2/users/whats_new.html

/r/IPython
https://redd.it/5jnw2y
Missing data visualizations in Python?

Is there a tool for plotting missing data entries for a dataset in Python? I am thinking about something like [this](https://www.researchgate.net/profile/Bo_Tranberg/publication/277776292/figure/fig2/Figure-3-Matrix-plot-of-missing-data-cases-sorted-by-number-of-persons-with-the-name.png).

R seems to have [something](http://www.inside-r.org/packages/cran/mi/docs/missing.pattern.plot) like this, but I haven't tracked down a Python equivalent.

/r/pystats
https://redd.it/4azhee
How to deal with migrations between branches

I just worked on a branch that made model changes, they switched to a different branch that didn't reflect those changes and now have issues with the database. What is the best way to tell the database to run with the current branch configuration/models in this case?

/r/django
https://redd.it/5jol7q
Question about jupyter notebook size

Do let me know if this isn't the right place to ask this (or can suggest a better place) -- just recently got into using jupyter notebook, but it's rather large (wide?) on my screen. Is there a way to make it smaller in that dimension (short of just zooming out the whole page)?

/r/IPython
https://redd.it/4sf3yn
Storing sensitive settings in database vs environment variables

So, my lead developer just asked me to save sensitive settings such as keys into the database, his argument is that, because we have a lot of sensitive settings, the docker run command become too long. By just pointing the right database that has the settings we need, we good to go.

How his argument? is it reasonable? The settings app will be dump into JSON, and we pass that JSON file between developers securely for developing locally.

/r/django
https://redd.it/5jp26m
What are the standard things people do to ready a project for production?

Hi everyone,

I've rolled my first django project up to production on Heroku (http://newsletter.greenbartrading.com)! It is just a signup page for my mailchimp email list. As far as readying it for production though pretty much all I did was turn debug off and set up the static files settings. I feel like, security-wise, I should be doing a lot more. Is there a guide somewhere I can use to learn what settings I should be protecting, adjusting, and the like for production vs testing environments?

FWIW, I used this starter template https://github.com/heroku/heroku-django-template to make sure it worked with Heroku and just worked from there. It's a simple page, just one template, some jQuery for the modals, a single view, and a few other basics.

Any help would be very much appreciated since I want to a) protect this and b) eventually roll the rest of my website as well as some other apps I've written in python over to django!

Thanks :)

/r/django
https://redd.it/5jntxo
graphene-django: how do I implement subscriptions?

Subscriptions look like a critical feature of graphql but graphene doesn't appear to support them. Is there a way to handle subscriptions manually perhaps using django channels?

/r/djangolearning
https://redd.it/5jdrvr
How does the directory work in Juypter notebook?

Say i have a csv file, how do i load it into juypter so that i can call it?

I'm not sure if the directory should be where the csv file is on my computer or on jupyter. i tried using both path but its always giving me this error

IOError: [Errno 2] No such file or directory: 'sample.csv'

any help is appreciated. thanks!

/r/IPython
https://redd.it/5js89o
[N] Elon Musk on Twitter : Tesla Autopilot vision neural net now working well. Just need to get a lot of road time to validate in a wide range of environments.
https://twitter.com/elonmusk/status/811738008969842689

/r/MachineLearning
https://redd.it/5jrl79