Kyso – Publish Your Jupyter Notebooks as Blog Posts
Hi Guys - the founders of kyso here.
Kyso (https://kyso.io) is a blogging platform for data science. We render your jupyter notebooks, including all code, interactive visualisations and rich markdown, as awesome data blogs.
Upload existing notebooks, import your repos from Github and start brand new Jupyterlab environments in the cloud, all for free.
And then publish and share your blogs with the community!
Have a look here for a few example posts on our platform:
https://kyso.io/jamesle/fifa18
https://kyso.io/vanaurum/algorithmic-portfolio-optimization
https://kyso.io/Don/a-journey-to-the-tip-of-neural-networks
https://kyso.io/waldohiding/twitter
Happy to hear any and all feedback!
/r/JupyterNotebooks
https://redd.it/8r2ilv
Hi Guys - the founders of kyso here.
Kyso (https://kyso.io) is a blogging platform for data science. We render your jupyter notebooks, including all code, interactive visualisations and rich markdown, as awesome data blogs.
Upload existing notebooks, import your repos from Github and start brand new Jupyterlab environments in the cloud, all for free.
And then publish and share your blogs with the community!
Have a look here for a few example posts on our platform:
https://kyso.io/jamesle/fifa18
https://kyso.io/vanaurum/algorithmic-portfolio-optimization
https://kyso.io/Don/a-journey-to-the-tip-of-neural-networks
https://kyso.io/waldohiding/twitter
Happy to hear any and all feedback!
/r/JupyterNotebooks
https://redd.it/8r2ilv
Need help with HTML Scraping and webdriving
Howdy! Relatively new to python so apologies if this is simple stuff.
Im currently writing some code to scrape [this](https://heroesofthestorm.com/en-us/leaderboards/hero/8/americas/?optimizelyId=8603521632&analyticsEnv=prod) page for the data in the table. I have the scraper set up with pandas and able to print a csv or xls and everything, but it seems by the way the html is written the parsing only registers the first 50 rows unless the "load more" button is clicked (at which point, the next 50 rows register in the html).
I thought that I could use selenium to automatically click the button for me, but then I realized the scraper will still just use the base website, not the specific page that I have "clicked" the button to load the rest of the table on.
I can't seem to find anything useful for how I could get the scraper to reference the specific page that the driver opens and does its thing on. However, if theres a way I can do it without the webdriver that would also be useful.
I can provide my code if necessary.
/r/Python
https://redd.it/8r683w
Howdy! Relatively new to python so apologies if this is simple stuff.
Im currently writing some code to scrape [this](https://heroesofthestorm.com/en-us/leaderboards/hero/8/americas/?optimizelyId=8603521632&analyticsEnv=prod) page for the data in the table. I have the scraper set up with pandas and able to print a csv or xls and everything, but it seems by the way the html is written the parsing only registers the first 50 rows unless the "load more" button is clicked (at which point, the next 50 rows register in the html).
I thought that I could use selenium to automatically click the button for me, but then I realized the scraper will still just use the base website, not the specific page that I have "clicked" the button to load the rest of the table on.
I can't seem to find anything useful for how I could get the scraper to reference the specific page that the driver opens and does its thing on. However, if theres a way I can do it without the webdriver that would also be useful.
I can provide my code if necessary.
/r/Python
https://redd.it/8r683w
Vue.js and Django
Hello my fellow Djangonauts!
I'm going to be starting a new job in a couple weeks using Vue.js with Django, and I was curious if anyone had any solid Vue.js learning materials they could point me to.
The company is going to be transitioning to Vue.js right when I get there, and I was brought in to assist with the architectural decisions going forward. So my main focus is to understand Vue.js and as it relates to the architecture and Django.
Anything and everything is appreciated!
/r/django
https://redd.it/8r6x33
Hello my fellow Djangonauts!
I'm going to be starting a new job in a couple weeks using Vue.js with Django, and I was curious if anyone had any solid Vue.js learning materials they could point me to.
The company is going to be transitioning to Vue.js right when I get there, and I was brought in to assist with the architectural decisions going forward. So my main focus is to understand Vue.js and as it relates to the architecture and Django.
Anything and everything is appreciated!
/r/django
https://redd.it/8r6x33
reddit
r/django - Vue.js and Django
4 votes and 4 so far on reddit
You may remember "Hey, I made a Google reCaptcha solver bot too..." - Guess what, I've released the source!
https://github.com/mikeyy/nonoCAPTCHA/
/r/Python
https://redd.it/8r6wka
https://github.com/mikeyy/nonoCAPTCHA/
/r/Python
https://redd.it/8r6wka
GitHub
GitHub - mikeyy/nonoCAPTCHA: An asynchronized Python library to automate solving ReCAPTCHA v2 using audio
An asynchronized Python library to automate solving ReCAPTCHA v2 using audio - mikeyy/nonoCAPTCHA
Confused about what's meant by confiugrations
I'm going over the mega tutorial and I'm a bit confused why the whole deal with configurations is, as the tutorial just kind of states it there without much explanation.
firstly, the author states that configurations are means of creativity in my application
"But for any applications except the simplest ones, you are going to find that Flask (and possibly also the Flask extensions that you use) offer some amount of freedom in how to do things, and you need to make some decisions, which you pass to the framework as a list of configuration variables."
But what's exactly meant by configurations? And how does it tie in with my freedome to write my application how I want to?
Then in order to specify my configuration options these blocks of test were given
import os
class Config(object):
SECRET_KEY = os.environ.get('SECRET_KEY') or 'you-will-never-guess'
and
app = Flask(__name__)
app.config.from_object(Config)
But what's being configured here? An encryption key? And how is that tied to the overall definition of configurations? Also what is `app.config.from_object(Config)` doing?
/r/flask
https://redd.it/8r5g0r
I'm going over the mega tutorial and I'm a bit confused why the whole deal with configurations is, as the tutorial just kind of states it there without much explanation.
firstly, the author states that configurations are means of creativity in my application
"But for any applications except the simplest ones, you are going to find that Flask (and possibly also the Flask extensions that you use) offer some amount of freedom in how to do things, and you need to make some decisions, which you pass to the framework as a list of configuration variables."
But what's exactly meant by configurations? And how does it tie in with my freedome to write my application how I want to?
Then in order to specify my configuration options these blocks of test were given
import os
class Config(object):
SECRET_KEY = os.environ.get('SECRET_KEY') or 'you-will-never-guess'
and
app = Flask(__name__)
app.config.from_object(Config)
But what's being configured here? An encryption key? And how is that tied to the overall definition of configurations? Also what is `app.config.from_object(Config)` doing?
/r/flask
https://redd.it/8r5g0r
reddit
Confused about what's meant by confiugrations • r/flask
I'm going over the mega tutorial and I'm a bit confused why the whole deal with configurations is, as the tutorial just kind of states it there...
Deploying and maintaining a Django project with PyCharm Pro ?
I know there are more appropriate ways of deploying and maintaining a Django project, than using PyCharm Pro.
Although, I would like to hear from those who have tried it or use it this way what were their experiences.
It's one of the main reasons that have kept me back regarding Django.
/r/django
https://redd.it/8r7tbd
I know there are more appropriate ways of deploying and maintaining a Django project, than using PyCharm Pro.
Although, I would like to hear from those who have tried it or use it this way what were their experiences.
It's one of the main reasons that have kept me back regarding Django.
/r/django
https://redd.it/8r7tbd
reddit
r/django - Deploying and maintaining a Django project with PyCharm Pro ?
4 votes and 2 so far on reddit
Data Sets and Challenge Statements Released for this year's Hack for the Sea
The [Hack for the Sea](https://hackforthesea.tech) Crew is proud to present this year's challenge statements and data sets.
They are, as follows:
* [How does a changing coastal watershed impact coastal waters?](https://hackforthesea.tech/GLO/challenge/1)
* [Can you predict where and when cod spawning will occur?](https://hackforthesea.tech/GLO/challenge/2)
* [Can an individual whale be identified based on its blowhole?](https://hackforthesea.tech/GLO/challenge/3)
* [Can you design a mooring that's both eelgrass and user-friendly?](https://hackforthesea.tech/GLO/challenge/4)
The event is all ages and open to anybody who is ready and willing to provide their skills to help the oceans. Also, while the summit will be held in person, the community is open and involved year round. Join us!
/r/pystats
https://redd.it/8r4901
The [Hack for the Sea](https://hackforthesea.tech) Crew is proud to present this year's challenge statements and data sets.
They are, as follows:
* [How does a changing coastal watershed impact coastal waters?](https://hackforthesea.tech/GLO/challenge/1)
* [Can you predict where and when cod spawning will occur?](https://hackforthesea.tech/GLO/challenge/2)
* [Can an individual whale be identified based on its blowhole?](https://hackforthesea.tech/GLO/challenge/3)
* [Can you design a mooring that's both eelgrass and user-friendly?](https://hackforthesea.tech/GLO/challenge/4)
The event is all ages and open to anybody who is ready and willing to provide their skills to help the oceans. Also, while the summit will be held in person, the community is open and involved year round. Join us!
/r/pystats
https://redd.it/8r4901
hackforthesea.tech
Hack for the Sea - Sept 21-23 2018
The 3rd Annual Hack for the Sea is a marine hackathon where participants take on challenges in marine science, research, and industry.
Django FormSets passing different kwarg to each form
Hello.
I have been using forms just fine, but have never used a formset before and am having a lot of difficulty figuring out how to pass kwargs to each form in the set.
I have a basic form like this:
class QuestionForm(forms.Form):
choices = \[(1, 'very poor'), (2, 'poor'), (3, 'fair'),
(4, 'good'), (5, 'very good')\]
score = forms.ChoiceField(widget=forms.RadioSelect, required=True)
What I want is for each form in the set to have access to a question\_id and question\_description.
I was reading through the documentation, but the documentation about passing custom kwargs to each form is not very clear to me.
If anyone could help me understand how to achieve this, I would very grateful.
/r/django
https://redd.it/8r7c74
Hello.
I have been using forms just fine, but have never used a formset before and am having a lot of difficulty figuring out how to pass kwargs to each form in the set.
I have a basic form like this:
class QuestionForm(forms.Form):
choices = \[(1, 'very poor'), (2, 'poor'), (3, 'fair'),
(4, 'good'), (5, 'very good')\]
score = forms.ChoiceField(widget=forms.RadioSelect, required=True)
What I want is for each form in the set to have access to a question\_id and question\_description.
I was reading through the documentation, but the documentation about passing custom kwargs to each form is not very clear to me.
If anyone could help me understand how to achieve this, I would very grateful.
/r/django
https://redd.it/8r7c74
reddit
r/django - Django FormSets passing different kwarg to each form
6 votes and 1 so far on reddit
HELP - CV/Gridsearch with a custom formula?
I am trying to optimize some weights for a factor model. I have a function where I can input the weights, and then it applies it to three streams after several transformations etc. It then outputs a final stream that is the combination, and compares it to a benchmark where I can calculate a R-squared.
Is there a way I can do this for a variety of weights to find the maximum R-squared? I don't want to use a basic linear regression, because I'm not just simply applying the weights to my streams. I have some other things going on before it spits out the final stream. Any help is appreciated.
/r/pystats
https://redd.it/8r1ye9
I am trying to optimize some weights for a factor model. I have a function where I can input the weights, and then it applies it to three streams after several transformations etc. It then outputs a final stream that is the combination, and compares it to a benchmark where I can calculate a R-squared.
Is there a way I can do this for a variety of weights to find the maximum R-squared? I don't want to use a basic linear regression, because I'm not just simply applying the weights to my streams. I have some other things going on before it spits out the final stream. Any help is appreciated.
/r/pystats
https://redd.it/8r1ye9
reddit
HELP - CV/Gridsearch with a custom formula? • r/pystats
I am trying to optimize some weights for a factor model. I have a function where I can input the weights, and then it applies it to three streams...
flask.cli.NoAppException: Could not import "C"?
I'm going through the mega tutorial and I want to find out how to run pycharm's automatic launcher so I don't have to exit and restart my site each time in the command line when I make a change. However when I use the launcher I got the error in the title. Any idea how to fix this? When I run via the command line it works fine though
/r/flask
https://redd.it/8r6rsy
I'm going through the mega tutorial and I want to find out how to run pycharm's automatic launcher so I don't have to exit and restart my site each time in the command line when I make a change. However when I use the launcher I got the error in the title. Any idea how to fix this? When I run via the command line it works fine though
/r/flask
https://redd.it/8r6rsy
reddit
r/flask - flask.cli.NoAppException: Could not import "C"?
4 votes and 1 so far on reddit
PyPI has removed PGP signatures of package developers as they move to new warehouse
https://github.com/pypa/warehouse/issues/3356
/r/Python
https://redd.it/8r9qby
https://github.com/pypa/warehouse/issues/3356
/r/Python
https://redd.it/8r9qby
GitHub
PGP signatures are not displayed #3356
This is the same issue as #703. Uploaded PGP signatures are not visible in Warehouse. See e.g. https://pypi.python.org/pypi/cryptography vs https://pypi.org/project/cryptography/ .
How do I modify and delete uploaded images via Django admin?
I already have a model set up with an ImageField and am able to upload images just fine and name them whatever I want. Through the admin, I can also edit and delete rows in the database through the admin, but this does nothing to their respective files.
Looking around, I've found a few posts and read some of the official documentation, but I couldn't understand how to use any of the options I was presented. Supposedly there are some methods I can use to do this, but I don't know how to do this from my model. How do I do this, or is there a better way to go about it?
/r/django
https://redd.it/8r8st5
I already have a model set up with an ImageField and am able to upload images just fine and name them whatever I want. Through the admin, I can also edit and delete rows in the database through the admin, but this does nothing to their respective files.
Looking around, I've found a few posts and read some of the official documentation, but I couldn't understand how to use any of the options I was presented. Supposedly there are some methods I can use to do this, but I don't know how to do this from my model. How do I do this, or is there a better way to go about it?
/r/django
https://redd.it/8r8st5
reddit
r/django - How do I modify and delete uploaded images via Django admin?
1 votes and 2 so far on reddit
ModelForm.save() not creating a new row in the DB
For some reason, using the command in the title overwrites the same row instead of creating a new one and increment the id.
I've posted the code on [Stack Overflow](https://stackoverflow.com/questions/50841225/form-save-populates-lates-row-instead-of-creating-a-new-django)
Since I do not get any error message, searching for solutions has been hard.
Thanks in advance.
/r/djangolearning
https://redd.it/8r9uwd
For some reason, using the command in the title overwrites the same row instead of creating a new one and increment the id.
I've posted the code on [Stack Overflow](https://stackoverflow.com/questions/50841225/form-save-populates-lates-row-instead-of-creating-a-new-django)
Since I do not get any error message, searching for solutions has been hard.
Thanks in advance.
/r/djangolearning
https://redd.it/8r9uwd
Stack Overflow
form.save() populates lates row instead of creating a new - Django
I'm trying to create a Klient with a post statement, but instead of creating a new row in the DB it replaces the latest one.
The point of my view is to create two models from one POST. Eventually ...
The point of my view is to create two models from one POST. Eventually ...
Adding a search option for the Mezzanine page tree
Could anybody give me some guidance on how to add a search option for the Messanine page tree (in admin section). I'm looking in to converting a wordpress app in to Mezzanine/Django which has \~2000+ hierarchical articles in it. So to make it usable I need to provide a search option.
I looked at the related template file (mezzanine/pages/templates/admin/pages/page/change\_list.html) and it just have following code block.
`{% block content %}`
`<div id="content-main">`
`{% if has_add_permission %}`
`{% include "admin/includes/content_typed_change_list.html" %}`
`{% endif %}`
`{% if cl.result_count == 0 %}`
`<p class="paginator">0 {{ cl.opts.verbose_name_plural }}</p>`
`{% else %}`
`<div id="tree">{% page_menu "pages/menus/admin.html" %}</div>`
`{% endif %}`
`</div>`
`{% endblock %}`
/r/django
https://redd.it/8rc06h
Could anybody give me some guidance on how to add a search option for the Messanine page tree (in admin section). I'm looking in to converting a wordpress app in to Mezzanine/Django which has \~2000+ hierarchical articles in it. So to make it usable I need to provide a search option.
I looked at the related template file (mezzanine/pages/templates/admin/pages/page/change\_list.html) and it just have following code block.
`{% block content %}`
`<div id="content-main">`
`{% if has_add_permission %}`
`{% include "admin/includes/content_typed_change_list.html" %}`
`{% endif %}`
`{% if cl.result_count == 0 %}`
`<p class="paginator">0 {{ cl.opts.verbose_name_plural }}</p>`
`{% else %}`
`<div id="tree">{% page_menu "pages/menus/admin.html" %}</div>`
`{% endif %}`
`</div>`
`{% endblock %}`
/r/django
https://redd.it/8rc06h
reddit
r/django - Adding a search option for the Mezzanine page tree
0 votes and 0 so far on reddit
Using jQuery to Auto refesh blog on update.
I need to use jQuery to check if my blog was updated and then to refresh the page if it has.
I see plenty of tutorials on how to do this using a php back end.
but I don't know jQuery well enough to make it work with Django.
/r/django
https://redd.it/8rdxqr
I need to use jQuery to check if my blog was updated and then to refresh the page if it has.
I see plenty of tutorials on how to do this using a php back end.
but I don't know jQuery well enough to make it work with Django.
/r/django
https://redd.it/8rdxqr
reddit
r/django - Using jQuery to Auto refesh blog on update.
0 votes and 3 so far on reddit
[P]I made a GPU cluster and free website to help detecting and classifying breast mammogram lesions for general public
https://imgur.com/gallery/PuWx39O
/r/MachineLearning
https://redd.it/8rdpwy
https://imgur.com/gallery/PuWx39O
/r/MachineLearning
https://redd.it/8rdpwy
Imgur
I made a GPU cluster and free website to help detecting and classifying breast mammogram lesions for general public - Album on…
Post with 17 votes and 4078 views. Shared by coolwulf. I made a GPU cluster and free website to help detecting and classifying breast mammogram lesions for general public
Why do you need to check if user entered an email when creating their account? (Custom User)
I'm creating a custom user, mostly because I want the email to be used for logging in instead of a username. As I understand, `USERNAME_FIELD = 'EMAIL_FIELD'` already makes the email required. So, why do the docs say you should write in the Custom User Manager inside of the create\_user method:
if not email:
raise ValueError("Users must have an email address")
Isn't it redundant to do that check when it's already required because the email is used by USERNAME\_FIELD?
I would also like to quickly confirm that there are no is\_admin, last\_login, etc properties that comes with AbstractBaseUser? You have to create all these properties by yourself and then create methods for them as well which for example update last\_login every time user logs in.
/r/djangolearning
https://redd.it/8rd3r2
I'm creating a custom user, mostly because I want the email to be used for logging in instead of a username. As I understand, `USERNAME_FIELD = 'EMAIL_FIELD'` already makes the email required. So, why do the docs say you should write in the Custom User Manager inside of the create\_user method:
if not email:
raise ValueError("Users must have an email address")
Isn't it redundant to do that check when it's already required because the email is used by USERNAME\_FIELD?
I would also like to quickly confirm that there are no is\_admin, last\_login, etc properties that comes with AbstractBaseUser? You have to create all these properties by yourself and then create methods for them as well which for example update last\_login every time user logs in.
/r/djangolearning
https://redd.it/8rd3r2
reddit
r/djangolearning - Why do you need to check if user entered an email when creating their account? (Custom User)
4 votes and 0 so far on reddit
Python: Picking random events for a game: developing the algorithm
https://www.youtube.com/attribution_link?a=nFfXgy6jLKE&u=%2Fwatch%3Fv%3DVU7FrkV0ha4%26feature%3Dshare
/r/Python
https://redd.it/8rfckc
https://www.youtube.com/attribution_link?a=nFfXgy6jLKE&u=%2Fwatch%3Fv%3DVU7FrkV0ha4%26feature%3Dshare
/r/Python
https://redd.it/8rfckc
YouTube
Python: Picking random events for a game: developing the algorithm
This video walks though developing code to pick random events where the events have different probabilities. This could be used in games, simulations, or pic...
Made a CLI for the World Cup simple but does its job!
https://github.com/SkullCarverCoder/wc18-cli
/r/Python
https://redd.it/8rdzzz
https://github.com/SkullCarverCoder/wc18-cli
/r/Python
https://redd.it/8rdzzz
GitHub
SkullCarverCoder/wc18-cli
wc18-cli - An easy command line interface for the 2018 World Cup