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
Wordpress and django

I am still trying to wrap my head around pointing my Django app to a Wordpress blog.

People seem to state the easiest is having blog.website.com on another server.

So I want to get this straight. Should my Django app be www.djangoapp.com and my blog be at www.fakeblog.com

Then I somehow have blog.djangoapp.com point to www.fakeblog.com?

If so, is this done through CNAME, redirect, alias?

Thanks for all the help

/r/djangolearning
https://redd.it/5idyt3
Generate an ipython notebook from code

I need to execute long running processes that generate a lot of data. I'd like to have an ipython notebooke linked to the h5 files that my simulations put out to facilitate an interactive analysis.

So: process -> hdf5 file -> ipython notebook with fancy plots.

I can go through the template route but I am wondering if there is a better way.

Ideas?



/r/IPython
https://redd.it/4v0mry
Steam trading - Django-based one way trading, user logging in using Steam

TL;DR Is it possible to gift items to Steam-logged-in users using Python?

I'm in the middle of writing a site which purpose isnt really to trade items, rather it would be an additional feature to gift CS:GO items to users who are logged in with Steam as giveaways. Most of the visual stuff is done, but I have zero experience when it comes to handling Steam trading and I was hoping I might bump into someone here who does. I've googled for hours, if not days, I have tens of bookmarks, I've looked through much of /r/SteamBot and /r/SteamBotMarket, but I'm not sure I've found exactly the thing I'm looking for. Most of the stuff I see are (some of them pretty advanced) bots responding to chat queries or to dropping items in the web UI. I only want a bot which, after I log into it manually and buy items on the market myself, gives those items to users, the latter part handled completely by the code and according to input from the website (for example, how many posts or points from other users a user has). I hope I'll make the logging in work using [python-social-auth](https://github.com/python-social-auth), haven't touched that yet, too. My questions are following:

- Do I need to resort to running and interacting with Node.js or C# bots to handle what I want? Or I should just scrap it, learn some Node and rewrite?

- What is the simplest way to just send a chosen item from my steam inventory to a user?

Thanks for your help!

/r/django
https://redd.it/5j42ex
Using model in view/api functions bad practice?

Is using say, the User model like this:

User.query.filter_by(id=0).first()
In the functions which define the endpoints bad practice? Should I make methods in the model to get the things I need?

/r/flask
https://redd.it/5ja1j8
Creating tables of values with python


###edit

id like to use this in ipython notebook if that makes a difference

******

I'm not sure if this is the best place for this question or not but I figured it
might be pandas related or something and someone here would know...


Basically I'm wondering what the best way to generate and display something such
as

t : 1, 2, 3, 4...
-----------------------
x = 2t : 2, 4, 6, 8...
-----------------------
y = 5/t : 5, 5/2, 5/3, 5/4...


Hopefully that's clearly a table of values :)

cheers


/r/pystats
https://redd.it/4f70co
No programming experience. Big ideas. How to get started?

I've got some "big data" ideas that I want to begin to explore, but my last programming experience was building HTML-based web-pages in high school. I've fooled around with "R" a little bit as well.

What is the best way to teach myself how to be a iPython ninja?

/r/IPython
https://redd.it/4u8o21
Does anyone know how to set specific vim-bindings in Ipython 5.0.0?

I have activated vim-like bindings in the profile configuration file, but I would like to set specific keybindings (like 'jk' for escape). Any ideas?

/r/IPython
https://redd.it/4tq7te
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/5jdewv
[D] What are current relations between (algebraic) topology and deep learning?

I am a graduate student in AI with an undergrad in pure math (algebraic topology, abstract algebra, PDEs). Currently I am working a lot on deep learning - especially manifold learning and nonlinear embeddings. Since finding a mapping on a nonlinear sub manifold and the normally unknown network architecture are closely linked I asked myself, if there is a connection between the topological properties of the map/diffeomorphism generated by a DNN and it's capabilities to learn certain things. I found this introduction on colah's blog and I also started to read on the methodology of Gunnar Carlson's topological data analysis. However, colah's blog gives me the idea where the journey could head to and Carlson's way is not really connected to research on DNN (in terms of learning diffeomorphism of your data) - as far as I see it. But I am stuck finding deeper literature on that. Can you give any recommendation for papers or introductory work on this boundary? Everything bringing together the topology of neural networks, group theory and algebraization (e.g. using functors such as chain complexes or homotopy) would really interest me.

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