Jupyter Notebook localhost servers...why so many running and how to shut them down...?
My Jupyter Notebook code modules have been running slower and slower...sometimes taking up to 2GB memory...sometimes locking up the system and causing a "Firefox not responding".
When the notebook was running... I used C:>jupyter notebook list...and I checked my Jupyter Notebook servers...
At one point there were 20 jupyter notebook servers listed...why so many...?
There was one localhost 8889 and the other 19 were localhost 8888. Also two severs had different "token" numbers on the same 8888 localhost.
I completely shut down my computer...with the hopes of stopping all the servers and start fresh...hoping to solve my slow programs and memory hog issues.
When I restarted my computer...before I ran any of my notebook programs...I immediately checked my C:>jupyter notebook list...and it showed 5 active jupyter notebook servers...and the Jupyter Notebook was not even running yet.
I did find and use "taskkill /PID 8889 /F" to try to close them...but it either didnt' find it...or...I got "Access Denied. Admin. permission needed (I am already logged on as Admin).
How is this possible that jupyter notebook servers are running before even I ran the jupyter notebook...and is there a way to close them all down to make sure they are not hogging resources...?
Here is the list of servers that came up...before I even ran jupyter notebook.
C:\Users\Robert2\jupyter notebook list
Currently running servers:
http://localhost:8889/ :: C:\Users\Robert2\A iPython Notebooks
http://localhost:8888/ :: C:\Users\Robert2\A iPython Notebooks
http://localhost:8888/ :: C:\Users\Robert2\A iPython Notebooks
http://localhost:8888/ :: C:\Users\Robert2\A iPython Notebooks
http://localhost:8888/ :: C:\Users\Robert2\A iPython Notebooks
Any help will be appreciated. Thanks,
Robert
/r/JupyterNotebooks
https://redd.it/7ca023
My Jupyter Notebook code modules have been running slower and slower...sometimes taking up to 2GB memory...sometimes locking up the system and causing a "Firefox not responding".
When the notebook was running... I used C:>jupyter notebook list...and I checked my Jupyter Notebook servers...
At one point there were 20 jupyter notebook servers listed...why so many...?
There was one localhost 8889 and the other 19 were localhost 8888. Also two severs had different "token" numbers on the same 8888 localhost.
I completely shut down my computer...with the hopes of stopping all the servers and start fresh...hoping to solve my slow programs and memory hog issues.
When I restarted my computer...before I ran any of my notebook programs...I immediately checked my C:>jupyter notebook list...and it showed 5 active jupyter notebook servers...and the Jupyter Notebook was not even running yet.
I did find and use "taskkill /PID 8889 /F" to try to close them...but it either didnt' find it...or...I got "Access Denied. Admin. permission needed (I am already logged on as Admin).
How is this possible that jupyter notebook servers are running before even I ran the jupyter notebook...and is there a way to close them all down to make sure they are not hogging resources...?
Here is the list of servers that came up...before I even ran jupyter notebook.
C:\Users\Robert2\jupyter notebook list
Currently running servers:
http://localhost:8889/ :: C:\Users\Robert2\A iPython Notebooks
http://localhost:8888/ :: C:\Users\Robert2\A iPython Notebooks
http://localhost:8888/ :: C:\Users\Robert2\A iPython Notebooks
http://localhost:8888/ :: C:\Users\Robert2\A iPython Notebooks
http://localhost:8888/ :: C:\Users\Robert2\A iPython Notebooks
Any help will be appreciated. Thanks,
Robert
/r/JupyterNotebooks
https://redd.it/7ca023
reddit
Jupyter Notebook localhost servers...why so... • r/JupyterNotebooks
My Jupyter Notebook code modules have been running slower and slower...sometimes taking up to 2GB memory...sometimes locking up the system and...
Cannot view the image uploaded through admin panel.
Hi everyone, I added a new model in my app that will provide optional images in my blog articles. But I have a problem. My model looks like that:
class Photo(models.Model):
imagename = models.CharField(max_length=200)
aricleimage =
models.ImageField(upload_to=
'blog/static/photos/%Y/%m/%d',
blank=True)
def __str__(self):
return self.imagename
It doesn't look nice because I had to break a few lines to put this code in this post. But anyway, I am able to (after registering) add a photo through admin panel. It creates the directory in the static dir as intended and photo is there and everything seems okay.
But when I try to preview it by viewing this object and clicking at the image URL, I get a notification that the photo with ID:
„4/change/blog/static/photos/2017/11/11/d79yUgm.jpg”
Does not exists and perhaps it was deleted. Well, I know where's the problem but how can I set the django so that when dealing with images it will use the upload directory instead of adding this `4/change`prefix? Thanks.
/r/django
https://redd.it/7c7xrv
Hi everyone, I added a new model in my app that will provide optional images in my blog articles. But I have a problem. My model looks like that:
class Photo(models.Model):
imagename = models.CharField(max_length=200)
aricleimage =
models.ImageField(upload_to=
'blog/static/photos/%Y/%m/%d',
blank=True)
def __str__(self):
return self.imagename
It doesn't look nice because I had to break a few lines to put this code in this post. But anyway, I am able to (after registering) add a photo through admin panel. It creates the directory in the static dir as intended and photo is there and everything seems okay.
But when I try to preview it by viewing this object and clicking at the image URL, I get a notification that the photo with ID:
„4/change/blog/static/photos/2017/11/11/d79yUgm.jpg”
Does not exists and perhaps it was deleted. Well, I know where's the problem but how can I set the django so that when dealing with images it will use the upload directory instead of adding this `4/change`prefix? Thanks.
/r/django
https://redd.it/7c7xrv
reddit
Cannot view the image uploaded through admin panel. • r/django
Hi everyone, I added a new model in my app that will provide optional images in my blog articles. But I have a problem. My model looks like that:...
Interacting with someone elses DRF API, making things easier?
I have limited experience with DRF itself, I work with a fair few other randomly written API's. All of those other ones I've had to write up classes to interact with them..etc. I'm hoping theres something easier for interacting with someone elses DRF.
I've looked into coreapi and I'm struggling with certain aspects, they say to run one command the output should be ... and I seem to get another response such as:
coreapi get http://127.0.0.1:8000
{
"users": "http://127.0.0.1:8000/users/",
"groups": "http://127.0.0.1:8000/groups/"
}
coreapi action list
No current document. Use `coreapi get` to fetch a document first.
coreapi action users list
No current document. Use `coreapi get` to fetch a document first.
What am I missing? This document it speaks of, seems to be something that needs to be done on the server side of things which doesn't help me since I have no control of that nor do they want to do anything for me.
/r/django
https://redd.it/7c62kf
I have limited experience with DRF itself, I work with a fair few other randomly written API's. All of those other ones I've had to write up classes to interact with them..etc. I'm hoping theres something easier for interacting with someone elses DRF.
I've looked into coreapi and I'm struggling with certain aspects, they say to run one command the output should be ... and I seem to get another response such as:
coreapi get http://127.0.0.1:8000
{
"users": "http://127.0.0.1:8000/users/",
"groups": "http://127.0.0.1:8000/groups/"
}
coreapi action list
No current document. Use `coreapi get` to fetch a document first.
coreapi action users list
No current document. Use `coreapi get` to fetch a document first.
What am I missing? This document it speaks of, seems to be something that needs to be done on the server side of things which doesn't help me since I have no control of that nor do they want to do anything for me.
/r/django
https://redd.it/7c62kf
reddit
Interacting with someone elses DRF API, making things... • r/django
I have limited experience with DRF itself, I work with a fair few other randomly written API's. All of those other ones I've had to write up...
Announcing: typet a library for writing concise type-safe Python classes.
https://github.com/contains-io/typet
/r/Python
https://redd.it/7cfddq
https://github.com/contains-io/typet
/r/Python
https://redd.it/7cfddq
GitHub
contains-io/typet
typet - A library of types that simplify working with typed Python.
Data Science with Python and Pandas Course - 100% OFF
https://youronlinecourses.net/data-science-using-python-and-pandas/
/r/pystats
https://redd.it/7chtih
https://youronlinecourses.net/data-science-using-python-and-pandas/
/r/pystats
https://redd.it/7chtih
Your online courses
Data Science Using Python and Pandas - FREE - Your online courses
Data Science using Python and Pandas course to learn How to analyze data with Python, Numpy, Pandas and Matplotlib.
Deconstructing Data Science
Hey everyone! 👋
Yesterday I launched the second post of a new Data Science blog, where I’m open-sourcing every resource I find and insight I come across in pursuit of becoming a world-class (top 5%) Data Scientist in < 6 months.
The purpose of this post is to empower others to start accelerating their own learning by:
1) deconstructing the complex craft of Data Science into it’s simple micro-skills
2) identifying the 20% of skills that contribute to 80% of outcomes
I'm writing this with learners like you and I in mind, so if you're also interested in accelerating your learning, check it out & feel free to share around:
https://ajgoldstein.com/2017/11/12/deconstructing-data-science/
/r/pystats
https://redd.it/7cgpom
Hey everyone! 👋
Yesterday I launched the second post of a new Data Science blog, where I’m open-sourcing every resource I find and insight I come across in pursuit of becoming a world-class (top 5%) Data Scientist in < 6 months.
The purpose of this post is to empower others to start accelerating their own learning by:
1) deconstructing the complex craft of Data Science into it’s simple micro-skills
2) identifying the 20% of skills that contribute to 80% of outcomes
I'm writing this with learners like you and I in mind, so if you're also interested in accelerating your learning, check it out & feel free to share around:
https://ajgoldstein.com/2017/11/12/deconstructing-data-science/
/r/pystats
https://redd.it/7cgpom
AJ Goldstein
Deconstructing Data Science: Breaking The Complex Craft Into Its Simplest Parts
This is the SECOND in a series of posts on applying Tim Ferriss’ accelerated learning framework to Data Science. My goal is to become a world-class (top 5%) Data Scientist in < 6 months, while o…
I Made a Massively Multiplayer Board Game to Test Django Channels
http://codewords.io/
I've been trying to get permission to run a game of it from the publisher and designer (CGE & Vlaada Chvátil) but I haven't heard back. I've found demonstrating that there's interest in what you're doing is the best way to get ahold of people. So..
Anyone interested in trying a massive game of Codenames over Twitch? Not quite "For Science!" more "For Engineering!" Which, let's be honest here, has a much better ring to it.
If you'd like to know more, I put up an FAQ up here: http://codewords.io/faq/
If you'd like to sign up to help, there's a form over there: http://codewords.io/
Screenshots and a game play overview can be found somewhere under this: https://imgur.com/a/3xtZC
Never haven’t heard of Codenames?! You’re in for a treat, it's one of this (or any) decade's best games. Here’s the super short rulebook (https://czechgames.com/en/codenames/downloads/).. And a video: https://www.youtube.com/watch?v=emlI43ZE9-c
/r/django
https://redd.it/7cieeu
http://codewords.io/
I've been trying to get permission to run a game of it from the publisher and designer (CGE & Vlaada Chvátil) but I haven't heard back. I've found demonstrating that there's interest in what you're doing is the best way to get ahold of people. So..
Anyone interested in trying a massive game of Codenames over Twitch? Not quite "For Science!" more "For Engineering!" Which, let's be honest here, has a much better ring to it.
If you'd like to know more, I put up an FAQ up here: http://codewords.io/faq/
If you'd like to sign up to help, there's a form over there: http://codewords.io/
Screenshots and a game play overview can be found somewhere under this: https://imgur.com/a/3xtZC
Never haven’t heard of Codenames?! You’re in for a treat, it's one of this (or any) decade's best games. Here’s the super short rulebook (https://czechgames.com/en/codenames/downloads/).. And a video: https://www.youtube.com/watch?v=emlI43ZE9-c
/r/django
https://redd.it/7cieeu
codewords.io
Codewords · FAQ
A Massively Multiplayer Online Adapation of Vlaada Chvátil's Codenames.
Please recommend good Python books for the following topics.
Hey Redditors,
I am looking for books on following topics using python programming:
* Automata with Python
* Design & Algorithm with Python
* Operational Research with Python
* Probability & Vectors with Python.
Thanks.
/r/Python
https://redd.it/7cj6v2
Hey Redditors,
I am looking for books on following topics using python programming:
* Automata with Python
* Design & Algorithm with Python
* Operational Research with Python
* Probability & Vectors with Python.
Thanks.
/r/Python
https://redd.it/7cj6v2
reddit
Please recommend good Python books for the following... • r/Python
Hey Redditors, I am looking for books on following topics using python programming: * Automata with Python * Design & Algorithm with Python *...
Show generated image file to html
I have generated image file from matplotlib with various filename, like this :
figure_name="Sentiment_Analysis_of_{}_Tweets_About_{}".format(number, query)
plt.savefig("{}.png".format(figure_name))
full_filename=figure_name+'.png'
return render_template("index.html", figure_filename=full_filename)
how to return the generated image to html?
I use this code but it doesn't work
<img src="/{{ figure_filename }}" class="img-fluid" alt="">
/r/flask
https://redd.it/7br7sx
I have generated image file from matplotlib with various filename, like this :
figure_name="Sentiment_Analysis_of_{}_Tweets_About_{}".format(number, query)
plt.savefig("{}.png".format(figure_name))
full_filename=figure_name+'.png'
return render_template("index.html", figure_filename=full_filename)
how to return the generated image to html?
I use this code but it doesn't work
<img src="/{{ figure_filename }}" class="img-fluid" alt="">
/r/flask
https://redd.it/7br7sx
reddit
Show generated image file to html • r/flask
I have generated image file from matplotlib with various filename, like this : ...
Question about thread model of Flask application
Would it be safe to have the built-in Flask webserver running in the same process with other background tasks?
Performance should not be a problem as only 1-2 Users are accessing the system at a time. It would be very convenient to have only a single process with shared data running and the possibility to have application internal events shared between tasks.
/r/flask
https://redd.it/7bkv62
Would it be safe to have the built-in Flask webserver running in the same process with other background tasks?
Performance should not be a problem as only 1-2 Users are accessing the system at a time. It would be very convenient to have only a single process with shared data running and the possibility to have application internal events shared between tasks.
/r/flask
https://redd.it/7bkv62
reddit
Question about thread model of Flask application • r/flask
Would it be safe to have the built-in Flask webserver running in the same process with other background tasks? Performance should not be a problem...
url variable
How do you get the url variable in flask.
http://localhost/page?a=22
How do I print the value of a in jinga2.
/r/flask
https://redd.it/7bcn72
How do you get the url variable in flask.
http://localhost/page?a=22
How do I print the value of a in jinga2.
/r/flask
https://redd.it/7bcn72
reddit
url variable • r/flask
How do you get the url variable in flask. http://localhost/page?a=22 How do I print the value of a in jinga2.
PathsJSON is a JSON-based DSL for describing paths in your project.
http://pathsjson.falsifiable.com/
/r/Python
https://redd.it/7cniu5
http://pathsjson.falsifiable.com/
/r/Python
https://redd.it/7cniu5
Falsifiable
A JSON-based format for describing paths in your project.
Show /r/django: a mini-language to add filtering and sorting capabilities to rest_framework views
https://github.com/dlr-eoc/rest_framework_filterdsl
/r/django
https://redd.it/7cmiv6
https://github.com/dlr-eoc/rest_framework_filterdsl
/r/django
https://redd.it/7cmiv6
GitHub
GitHub - dlr-eoc/rest_framework_filterdsl: A filtering and sorting DSL for the Django REST framework
A filtering and sorting DSL for the Django REST framework - dlr-eoc/rest_framework_filterdsl
A simple python3 library to convert JSON into XML via file, URL or string.
https://github.com/vinitkumar/json2xml
/r/Python
https://redd.it/7cp91g
https://github.com/vinitkumar/json2xml
/r/Python
https://redd.it/7cp91g
GitHub
GitHub - vinitkumar/json2xml: json to xml converter in python3
json to xml converter in python3. Contribute to vinitkumar/json2xml development by creating an account on GitHub.
Django-UserForeignKey - Automatically set the current user on a model (e.g., for created_by information)
Hi there,
today I want to show the Django community a library called **django-userforeignkey** (disclaimer: I know the author of the package in person, and I have contributed to that package too), that essentially allows you to add **created_by** and **last_modified_by** information to your Django Models like this:
class MyModel(models.Model):
title = models.CharField(max_length=128)
description = models.TextField()
created_by = UserForeignKey(auto_user_add=True)
created_at = models.DateTimeField(auto_now_add=True)
last_modified_by = UserForeignKey(auto_user=True, auto_user_add=True)
last_modified_at = models.DateTimeField(auto_now_add=True, auto_now=True)
And all of that comes without needing to read request.user in your views or forms! It's all done "automatically".
The github repo of **django-userforeignkey** including a quickstart guide is available here: https://github.com/beachmachine/django-userforeignkey - it's also published on pypi
I showcased this library in a video which is available here: https://youtu.be/iJCbYMgUDW8
/r/django
https://redd.it/7cq29w
Hi there,
today I want to show the Django community a library called **django-userforeignkey** (disclaimer: I know the author of the package in person, and I have contributed to that package too), that essentially allows you to add **created_by** and **last_modified_by** information to your Django Models like this:
class MyModel(models.Model):
title = models.CharField(max_length=128)
description = models.TextField()
created_by = UserForeignKey(auto_user_add=True)
created_at = models.DateTimeField(auto_now_add=True)
last_modified_by = UserForeignKey(auto_user=True, auto_user_add=True)
last_modified_at = models.DateTimeField(auto_now_add=True, auto_now=True)
And all of that comes without needing to read request.user in your views or forms! It's all done "automatically".
The github repo of **django-userforeignkey** including a quickstart guide is available here: https://github.com/beachmachine/django-userforeignkey - it's also published on pypi
I showcased this library in a video which is available here: https://youtu.be/iJCbYMgUDW8
/r/django
https://redd.it/7cq29w
GitHub
GitHub - beachmachine/django-userforeignkey
Contribute to beachmachine/django-userforeignkey development by creating an account on GitHub.
Senior Python Programmers, what tricks do you want to impart to us young guns?
Like basic looping, performance improvement, etc.
/r/Python
https://redd.it/7cs8dq
Like basic looping, performance improvement, etc.
/r/Python
https://redd.it/7cs8dq
reddit
Senior Python Programmers, what tricks do you want to... • r/Python
Like basic looping, performance improvement, etc.
Is there a way to put the result at the top of a notebook?
I've recently started using Jupyter Notebooks. I'm using Folium in them to create interactive maps. [HERE](http://gis.ironcountywi.org/jupyter/Remon_Project_2018-C.html) is a simple example. Is there a way to get the final map to the top of the Notebook so people see it first and don't have to scroll down to see how it was produced unless they want to? Thanks.
/r/IPython
https://redd.it/7cs7eu
I've recently started using Jupyter Notebooks. I'm using Folium in them to create interactive maps. [HERE](http://gis.ironcountywi.org/jupyter/Remon_Project_2018-C.html) is a simple example. Is there a way to get the final map to the top of the Notebook so people see it first and don't have to scroll down to see how it was produced unless they want to? Thanks.
/r/IPython
https://redd.it/7cs7eu