Spyder causing tons of terminal/console windows to rapidly open and close. WHy and how do I fix it?
The title pretty much says it all. This happens with a whole range of things I try to do, and actually it seems like everything I do causes this.
The only other information I can provide, is that the file address in the "Title" bar of the terminal window ends in "tput.exe", but it's opening and closing so rapidly (and so many times) that I have a hard time making out anything else. Anyone know whats up?
To clarify, I just ran `x = []` and had to wait 10 seconds for a ton of terminal windows to open and close. It's SUPER annoying.
/r/IPython
https://redd.it/6al4pv
The title pretty much says it all. This happens with a whole range of things I try to do, and actually it seems like everything I do causes this.
The only other information I can provide, is that the file address in the "Title" bar of the terminal window ends in "tput.exe", but it's opening and closing so rapidly (and so many times) that I have a hard time making out anything else. Anyone know whats up?
To clarify, I just ran `x = []` and had to wait 10 seconds for a ton of terminal windows to open and close. It's SUPER annoying.
/r/IPython
https://redd.it/6al4pv
reddit
Spyder causing tons of terminal/console windows to... • r/IPython
The title pretty much says it all. This happens with a whole range of things I try to do, and actually it seems like everything I do causes...
The future is looking bright for Python
https://medium.com/@trstringer/the-future-is-looking-bright-for-python-95a748a4ef3e
/r/Python
https://redd.it/6ak20v
https://medium.com/@trstringer/the-future-is-looking-bright-for-python-95a748a4ef3e
/r/Python
https://redd.it/6ak20v
Medium
The future is looking bright for Python
Stack Overflow recently released a cool new tool called Trends. This tool allows you to compare Stack Overflow question tags over the…
Edit form with WTForm and Sqlalchemy
Using WTForm, how can I fill all fields from Sqlalchemy? I'm improving a CRUD.
Now I use
```{{ form.name(class='form-control', value=my_contact.name) }}```
/r/flask
https://redd.it/6alei3
Using WTForm, how can I fill all fields from Sqlalchemy? I'm improving a CRUD.
Now I use
```{{ form.name(class='form-control', value=my_contact.name) }}```
/r/flask
https://redd.it/6alei3
reddit
Edit form with WTForm and Sqlalchemy • r/flask
Using WTForm, how can I fill all fields from Sqlalchemy? I'm improving a CRUD. Now I use ```{{ form.name(class='form-control',...
Machine Learning Explained with GIFs
https://dashee87.github.io/data%20science/general/Clustering-with-Scikit-with-GIFs/
/r/Python
https://redd.it/6aku0r
https://dashee87.github.io/data%20science/general/Clustering-with-Scikit-with-GIFs/
/r/Python
https://redd.it/6aku0r
dashee87.github.io
Clustering with Scikit with GIFs
This posts describes (with GIFs and words) the most common clustering algorithms available through Scikit-learn.
It doesn't recognize that there is a terrain folder but it does on my ubuntu computer
https://github.com/DeaSTL/openGL-sandbox
/r/Python
https://redd.it/6anv3r
https://github.com/DeaSTL/openGL-sandbox
/r/Python
https://redd.it/6anv3r
GitHub
DeaSTL/openGL-sandbox
Contribute to openGL-sandbox development by creating an account on GitHub.
Trouble getting Filtering working with ViewSet
I'm relatively new to Django but generally have figured out how to use filtering quite effectively. However, I have encountered a situation that I can't resolve:
class FeatureStatsViewSet(ModelViewSet):
queryset = FeatureStats.objects.all()
serializer_class = FeatureStatsSerializer
permission_classes = (permissions.IsAuthenticated,)
# TODO: Not sure why this is only returning one record during testing!
def get_queryset(self):
user = self.request.user
pipelines = Pipeline.objects.filter(createdBy=user.id)
features = Feature.objects.filter(pipeline=pipelines)
return FeatureStats.objects.filter(feature=features)
#return FeatureStats.objects.all()
What this code is supposed to do is return 'FeatureStats' for the currently authenticated user. My approach has worked correctly for lots of other tables but not for this one.
"FeatureStats.objects.all()" returns all 10 records in my test data, which is correct.
"FeatureStats.objects.filter(feature=features)" is supposed to return 9 records, which are the ones that belong to the currently authenticated user via the Pipeline class, which has a UserId field. Unfortunately it only returns 1 record.
I added "print()" statements from top to bottom in the aforementioned code. Everything appeared correct down to "features", which showed only the 11 features connected to the authenticated user and not the 1 feature which belonged to another user. But then the last statement just doesn't function correctly, returning only one record.
Any ideas what I might be doing wrong?
Robert
/r/django
https://redd.it/6anhyn
I'm relatively new to Django but generally have figured out how to use filtering quite effectively. However, I have encountered a situation that I can't resolve:
class FeatureStatsViewSet(ModelViewSet):
queryset = FeatureStats.objects.all()
serializer_class = FeatureStatsSerializer
permission_classes = (permissions.IsAuthenticated,)
# TODO: Not sure why this is only returning one record during testing!
def get_queryset(self):
user = self.request.user
pipelines = Pipeline.objects.filter(createdBy=user.id)
features = Feature.objects.filter(pipeline=pipelines)
return FeatureStats.objects.filter(feature=features)
#return FeatureStats.objects.all()
What this code is supposed to do is return 'FeatureStats' for the currently authenticated user. My approach has worked correctly for lots of other tables but not for this one.
"FeatureStats.objects.all()" returns all 10 records in my test data, which is correct.
"FeatureStats.objects.filter(feature=features)" is supposed to return 9 records, which are the ones that belong to the currently authenticated user via the Pipeline class, which has a UserId field. Unfortunately it only returns 1 record.
I added "print()" statements from top to bottom in the aforementioned code. Everything appeared correct down to "features", which showed only the 11 features connected to the authenticated user and not the 1 feature which belonged to another user. But then the last statement just doesn't function correctly, returning only one record.
Any ideas what I might be doing wrong?
Robert
/r/django
https://redd.it/6anhyn
reddit
Trouble getting Filtering working with ViewSet • r/django
I'm relatively new to Django but generally have figured out how to use filtering quite effectively. However, I have encountered a situation that...
Can anyone suggest a website where I can hire someone to teach me how to program in python?
I understand there are many places to learn it for free online. I don't have time to fumble around with it.
I would like to learn it quickly and with less frustration.
Does anyone know where I can find a one on one teacher?
/r/Python
https://redd.it/6ap53k
I understand there are many places to learn it for free online. I don't have time to fumble around with it.
I would like to learn it quickly and with less frustration.
Does anyone know where I can find a one on one teacher?
/r/Python
https://redd.it/6ap53k
reddit
Can anyone suggest a website where I can hire someone... • r/Python
I understand there are many places to learn it for free online. I don't have time to fumble around with it. I would like to learn it quickly and...
Python accumulators
What is an accumulator? Should it be assigned any particular value? Why and why not?
/r/Python
https://redd.it/6aoy4z
What is an accumulator? Should it be assigned any particular value? Why and why not?
/r/Python
https://redd.it/6aoy4z
reddit
Python accumulators • r/Python
What is an accumulator? Should it be assigned any particular value? Why and why not?
[D] Did I get too far ahead of myself?
For the past 1.5 years I've been interning as an undergrad research engineer on ML, and I am getting results, and some of it is going to be published. From this perspective, it looks like I am doing quite ok, but in reality I have no idea what I am doing, and the paper(s) that I'll be publishing won't even be close to the quality of the papers that I'm reading. My understanding of ML algorithms is at a black box level, but I have a decent understanding of what approach I should take for a problem, and domain knowledge in the field that I'm applying ML to. However, my math understanding is terrible, and I can't even count to potato. I ignore the math problems and move on to problems that I am able to solve, but this severely limits my usefulness and I'm unable to reproduce most of the new research papers.
I came from a biology background, but I've been programming and reading up about comp sci topics ever since I was a kid. Never good at math, and that's the reason why I wasn't eligible for a math/compsci major, and had to self-study my way into this field.
At this point I am uncertain whether I am just overwhelmed by this new field, and that I should just continue applying ML and hopefully learn and understand it this way, or that I will eventually hit a wall and get stuck as a half-assed biologist and half-assed computer scientist. Instead of continuing with getting practical experience, I could take a few steps back and formally enroll for math/comp sci courses for a couple of years and take the usual safe route. In the long term, I would like to end up a tech company as a research engineer, but I feel like if I don't get a degree in math/comp sci, I will never be confident in my math skills and have a hard time getting past technical interviews.
Thanks for taking the time to read this. What do you guys think?
/r/MachineLearning
https://redd.it/6anu7y
For the past 1.5 years I've been interning as an undergrad research engineer on ML, and I am getting results, and some of it is going to be published. From this perspective, it looks like I am doing quite ok, but in reality I have no idea what I am doing, and the paper(s) that I'll be publishing won't even be close to the quality of the papers that I'm reading. My understanding of ML algorithms is at a black box level, but I have a decent understanding of what approach I should take for a problem, and domain knowledge in the field that I'm applying ML to. However, my math understanding is terrible, and I can't even count to potato. I ignore the math problems and move on to problems that I am able to solve, but this severely limits my usefulness and I'm unable to reproduce most of the new research papers.
I came from a biology background, but I've been programming and reading up about comp sci topics ever since I was a kid. Never good at math, and that's the reason why I wasn't eligible for a math/compsci major, and had to self-study my way into this field.
At this point I am uncertain whether I am just overwhelmed by this new field, and that I should just continue applying ML and hopefully learn and understand it this way, or that I will eventually hit a wall and get stuck as a half-assed biologist and half-assed computer scientist. Instead of continuing with getting practical experience, I could take a few steps back and formally enroll for math/comp sci courses for a couple of years and take the usual safe route. In the long term, I would like to end up a tech company as a research engineer, but I feel like if I don't get a degree in math/comp sci, I will never be confident in my math skills and have a hard time getting past technical interviews.
Thanks for taking the time to read this. What do you guys think?
/r/MachineLearning
https://redd.it/6anu7y
reddit
[D] Did I get too far ahead of myself? • r/MachineLearning
For the past 1.5 years I've been interning as an undergrad research engineer on ML, and I am getting results, and some of it is going to be...
Question on Libraries for Terrain
Hey there fellow Python aficionados!
I'm starting on a project that maps terrain data in Alaska and I honestly have no idea where to begin or what libraries to use. Hell, I can't even figure out where to get the data!
Anyone have any guidance? I want to take and build contour maps at integer hundreds of feet levels throughout southwest Alaska. Ideally it'd be nice to also draw great circles to arbitrary points then measure four or five miles either side of course and find the highest elevation.
Google says matplotlib and basemap but the setup for basemap looks like a bastard. I'm open to learning another programming language if that would be the easiest way to do this, but I'm partial to Python and I'm most comfortable with it. Thanks for the help, this project is a little beyond the scope what I normally do.
/r/Python
https://redd.it/6aprff
Hey there fellow Python aficionados!
I'm starting on a project that maps terrain data in Alaska and I honestly have no idea where to begin or what libraries to use. Hell, I can't even figure out where to get the data!
Anyone have any guidance? I want to take and build contour maps at integer hundreds of feet levels throughout southwest Alaska. Ideally it'd be nice to also draw great circles to arbitrary points then measure four or five miles either side of course and find the highest elevation.
Google says matplotlib and basemap but the setup for basemap looks like a bastard. I'm open to learning another programming language if that would be the easiest way to do this, but I'm partial to Python and I'm most comfortable with it. Thanks for the help, this project is a little beyond the scope what I normally do.
/r/Python
https://redd.it/6aprff
reddit
Question on Libraries for Terrain • r/Python
Hey there fellow Python aficionados! I'm starting on a project that maps terrain data in Alaska and I honestly have no idea where to begin or...
Fastest Redis configuration for Django
https://www.peterbe.com/plog/fastest-redis-optimization-for-django
/r/django
https://redd.it/6apx65
https://www.peterbe.com/plog/fastest-redis-optimization-for-django
/r/django
https://redd.it/6apx65
Scaling Python/Flask Microservice with Kubernetes
http://blog.apcelent.com/scaling-python-microservices-kubernetes.html
/r/flask
https://redd.it/6aqt21
http://blog.apcelent.com/scaling-python-microservices-kubernetes.html
/r/flask
https://redd.it/6aqt21
reddit
Scaling Python/Flask Microservice with Kubernetes • r/flask
1 points and 0 comments so far on reddit
Getting started with PyGObject
https://pygobject.readthedocs.io/en/latest/getting_started.html
/r/Python
https://redd.it/6aq936
https://pygobject.readthedocs.io/en/latest/getting_started.html
/r/Python
https://redd.it/6aq936
nbviewer does not see notebook in Github repository?
Hi Guys. Does anyone know why nbviewer would not be able to see a notebook I uploaded to one of my Github repositories? If I go to the repository, I can see the notebook and view its contents, but nbviewer will not recognize that it's there. Has anyone else experienced this?
/r/IPython
https://redd.it/6asfa6
Hi Guys. Does anyone know why nbviewer would not be able to see a notebook I uploaded to one of my Github repositories? If I go to the repository, I can see the notebook and view its contents, but nbviewer will not recognize that it's there. Has anyone else experienced this?
/r/IPython
https://redd.it/6asfa6
reddit
nbviewer does not see notebook in Github repository? • r/IPython
Hi Guys. Does anyone know why nbviewer would not be able to see a notebook I uploaded to one of my Github repositories? If I go to the repository,...
Invalid syntax when invoking package name?
I'm learning to use ipython qtconsole with scipy tools to practice graphing differential equations. I wrote a short script to set up the environment to work in. [Here is the script](https://pastebin.com/uhGRYycE).
When I use it in qtconsole, it gives me this error:
File "/Users/me/DiffEq/deenv.py", line 9
%matplotlib inline
^
SyntaxError: invalid syntax
However, when I just type "%matplotlib inline" into the console, it gives me no such error.
Why is this?
/r/IPython
https://redd.it/6b0vlw
I'm learning to use ipython qtconsole with scipy tools to practice graphing differential equations. I wrote a short script to set up the environment to work in. [Here is the script](https://pastebin.com/uhGRYycE).
When I use it in qtconsole, it gives me this error:
File "/Users/me/DiffEq/deenv.py", line 9
%matplotlib inline
^
SyntaxError: invalid syntax
However, when I just type "%matplotlib inline" into the console, it gives me no such error.
Why is this?
/r/IPython
https://redd.it/6b0vlw
Pastebin
from sympy import init_printing # Latex printing to screen import matplotlib. - Pastebin.com
How do I remove the In [ ] Out [ ] in a Jupyter notebook?
When coding in a Jupyter notebook, is it possible to disable showing the In [ ], Out [ ] next to each code cell? If not, is it possible to do when rendering the notebook using NBViewer? I'd like my notebooks to look a little nicer without the In [ ], Out [ ] sticking out next to every cell, so I'd like to get rid of these things. Thanks!
/r/IPython
https://redd.it/6ascqz
When coding in a Jupyter notebook, is it possible to disable showing the In [ ], Out [ ] next to each code cell? If not, is it possible to do when rendering the notebook using NBViewer? I'd like my notebooks to look a little nicer without the In [ ], Out [ ] sticking out next to every cell, so I'd like to get rid of these things. Thanks!
/r/IPython
https://redd.it/6ascqz
reddit
How do I remove the In [ ] Out [ ] in a Jupyter notebook? • r/IPython
When coding in a Jupyter notebook, is it possible to disable showing the In [ ], Out [ ] next to each code cell? If not, is it possible to do when...
Checkbox in the admin that changes search_fields in real time
I would like to have a checkbox/toggle/etc under the search_fields box. When the checkbox is/isn't checked, it will change the get_search_results() function. I'd prefer for this to be done using JavaScript (no JQuery if possible!) so that the search results still change after the "Search" button is pressed, but without the page needing to reload.
Please let me know of any insights you might have. Thank you!
/r/django
https://redd.it/6b0mvh
I would like to have a checkbox/toggle/etc under the search_fields box. When the checkbox is/isn't checked, it will change the get_search_results() function. I'd prefer for this to be done using JavaScript (no JQuery if possible!) so that the search results still change after the "Search" button is pressed, but without the page needing to reload.
Please let me know of any insights you might have. Thank you!
/r/django
https://redd.it/6b0mvh
reddit
Checkbox in the admin that changes search_fields in... • r/django
I would like to have a checkbox/toggle/etc under the search_fields box. When the checkbox is/isn't checked, it will change the...
How many people are around? Monitor wifi signals to count the number of cellphones around you
https://github.com/schollz/howmanypeoplearearound
/r/Python
https://redd.it/6aytne
https://github.com/schollz/howmanypeoplearearound
/r/Python
https://redd.it/6aytne
GitHub
GitHub - schollz/howmanypeoplearearound: Count the number of people around you by monitoring wifi signals :satellite:
Count the number of people around you :family_man_man_boy: by monitoring wifi signals :satellite: - GitHub - schollz/howmanypeoplearearound: Count the number of people around you by monitoring wifi...
Example API to query Google Places, Yelp and FourSquare at the same time, with Bayesian Rankings
https://github.com/octohedron/TouristFriend
/r/flask
https://redd.it/6az5ee
https://github.com/octohedron/TouristFriend
/r/flask
https://redd.it/6az5ee
GitHub
octohedron/TouristFriend
🌆 TouristFriend API lets you query Google Places, Yelp and FourSquare at the same time, with bayesian rankings!