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
Access PC notebook from mobile

I have a Jupyter notebook running on my PC. Is it possible to access the notebook from a mobile browser? Both the PC and the mobile device are in the same WiFi network.

/r/IPython
https://redd.it/iuzo1c
JoCrypt. Easy low level encryption framework.

So i made this project for school purposes, but i built on it in my free time, added sql compatibilty and all.
I aimed to make a complete basic algorithmic encryption tool, but ended up adding hashes and steganography.

https://github.com/JodisKripe/JoCrypt

This is the github link...
Also i made a repl so you can try it out. Some features are limited tho..

www.jocrypt.sidjo.repl.run

It has websocket issues sometimes but should run okay.

Please let me know about any suggestions.

Cheers,
JodisKripe.

/r/Python
https://redd.it/iv2u64
Saturday megathread: Share your resources!

Found a neat resource related to Python over the past week? Looking for a resource to explain a certain topic?

Use this thread to chat about and share Python resources!

/r/Python
https://redd.it/ivhocx
I made my large flask project open source! CryptoCurrency based community with wallets.

This has been a nonstop project during covid. It was on gitea but moved it to github. Its made with Python flask/ flasksqlalchemy / postgres. I decided to work on the project with my wife after she got a reddit gold and realized it was worth nothing and complained it should be a bitcoin or crypto something. Then we found out it probably benefits tencent (China) the most. So work began to bring the coin back to the people.

#Github
https://github.com/tipvote

#url
www.tipvote.com

#contribute or advice
Looking for people who want to contribute or help out. Also offering advice if you need help with a crypto based service.

/r/flask
https://redd.it/iv9xcq
How to deploy Django project that has a function that could take an hour to run?

Context: I am pulling data from an api via a function in my views.py file. The API i’m pulling data from has rate limits that could mean this function and ultimately, the template to be displayed would take an hour and all the while the user would just see a blank page while the function competes.

Two questions;

1) Is there a best practice for implementing large/time-intensive python functions in django apps? E.g submit a request, have some backend process run the function in the background then immediately return a “process running” confirmation?

2) Is there a way to return status updates a django template while the function is running so the user can get feedback on it’s status? (e.g 10% complete...)?

/r/django
https://redd.it/ivjeh3
storing passwords

how long is the expected output for a password that was salted and hashed using pbkdf2 and sha256? also, is using pbkdf2 and sha256 enough? or should I be using something else? what is the industry standard for salting and hashing?

/r/django
https://redd.it/ivo085
DB design

I am working as an intern as a backend dev using django. Now my senior dev asked me to do "db design" for a module. I have default dbsqlite in django. Now, what does this db design means?? What I am supposed to do? I know I have to create models to make a table in database. Apart from that what is db design?? .Please explain in layman terms.

/r/djangolearning
https://redd.it/ivlbn7
Can't create new django project [VS CODE]

PS C:\Users\Kwaku Biney\Desktop\hello_django> django-admin startproject dj_pro
django-admin : The term 'django-admin'
is not recognized as the name of a
cmdlet, function, script file, or
operable program. Check the spelling of
the name, or if a path was included,
verify that the path is correct and try
again.
At line:1 char:1
+ django-admin startproject dj_pro
+ ~~~~~~~~~~~~
+ CategoryInfo : ObjectNotF
ound: (django-admin:String) [], Comm
andNotFoundException
+ FullyQualifiedErrorId : CommandNot
FoundException

This is what happens everytime a try to create a new project. How do I rectify it? Created the path and everything.. but still

/r/djangolearning
https://redd.it/ivgwl2
[D] Quality Contributions Roundup 9/14

Last quality roundup thread can be found here: https://www.reddit.com/r/MachineLearning/comments/hvzyz7/d_quality_contributions_roundup_722/

To encourage quality contributions, the mods will periodically collate a set of quality technical discussions on /r/MachineLearning. Of course, we haven't read every comment on /r/MachineLearning, and what we consider to be quality discussions will nevertheless reflect our biases and what we're interested in.

In the future, if you see an insightful comment, please report them with the reason "Quality Contribution". Alternately, bring them up in the comments, and we may add them to the main post.

In general, these roundups will consist of any post since the last Quality Contributions roundup. We will focus on technical discussions - that is, we will ignore comments like Geoff Hinton's response to Schmidhuber. Thus, here we are!

---

[Mode collapse approaches, data augmentation for GANs, and StyleGAN vs BigGAN](https://www.reddit.com/r/MachineLearning/comments/hwf093/d_what_are_the_recent_papers_that_address_the/fyzionh/) by u/gwern

> Data augmentation historically just screws up GANs, causing G to emit artifacts, but apparently all you have to do, turns out, is always apply data augmentation to all images before training or scoring (rather than the usual approach of augmenting just reals), and then it Just Works. So you can get surprisingly good results out of StyleGAN training from scratch on just thousands of images, even.

---

[Breaking

/r/MachineLearning
https://redd.it/ivk4bb
JupyterHub Notebook Repo w/out nbgitpuller

I have a LittlestJupyterHub server I'm hosting, and I have a shared folder (read-only) that all my users can access. I want to add a git repo to it, but Im not sure how to then make JupyterHub run notebook for the users.

Normally you would cd into the repo and run `jupyter notebook` but I don't know how to achieve that in JupyterHub.

Thanks in advance.

/r/JupyterNotebooks
https://redd.it/ivnjx5
Missing data when converting to dataframe with django_pandas' read_frame

The queryset returns values for both adviser & introducer, but when converted to a dataframe using django_pandas.io read_frame the adviser values remain and the introducer is set to None.


This how the model is set up

class Split(models.Model):
adviser = models.ForeignKey(Account, null=True, on_delete=models.SET_NULL, related_name='adviser')
name = models.CharField(max_length=50, null=True)
reference = models.CharField(max_length=10, null=True)
introducer = models.ForeignKey(Account, null=True, blank=True, on_delete=models.SET_NULL, related_name='introducer')
split = models.FloatField(default=0, null=True, blank=False)
date_created = models.DateTimeField(auto_now_add=True, null=True)

def __str__ (self):
return self.name

And this is my method of creating a dataframe

splits = Split.objects.all()
splits_df = read_frame(splits)

/r/djangolearning
https://redd.it/ivs7a7
[D] Interview with the VP of Research at NVIDIA on ML Research & Research at NVIDIA

Hi All,

I run a non-monetised, ad-free podcast a service to the community where I interview my ML Heroes.

I had the privilege to interview one of the pioneers of the ML: Bryan Catanzaro about his journey into ML, Research at NVIDIA and beyond.

[Video](https://www.youtube.com/watch?v=guJT5GOiNjA)

[Audio](https://anchor.fm/chaitimedatascience/episodes/Bryan-Catanzaro--Research-at-NVIDIA--RTX-3000--Deep-Learning--CTDS-Show-101-ej4sql)

If you have any suggestions on how to improve the podcast or any guest recommendations, I'd be happy to take them. Hope you enjoy the interview!

Thanks!

/r/MachineLearning
https://redd.it/ivnh9i