R processes left over after nbconvert
I have a notebook running some R code every night on a server using nbconvert. For some reason when the job is done there's still an R process running in the background. I end up just killing them all every other week or so after they've piled up.
Has anyone else experienced this before? Is there a way to make sure that these are ended when the nbconvert finishes?
/r/JupyterNotebooks
https://redd.it/ber4rb
I have a notebook running some R code every night on a server using nbconvert. For some reason when the job is done there's still an R process running in the background. I end up just killing them all every other week or so after they've piled up.
Has anyone else experienced this before? Is there a way to make sure that these are ended when the nbconvert finishes?
/r/JupyterNotebooks
https://redd.it/ber4rb
reddit
r/JupyterNotebooks - R processes left over after nbconvert
0 votes and 0 comments so far on Reddit
Jupyter Notebook dot notation dropdown menu arrowkeys problem
Hi guys,
I didn’t know where else to turn, I couldn’t find anything online about this small problem I’m having with jupyter notebook.
When I tab and open the dropdown menu to see the options for the dot notation I can’t scroll through the options with my arrow keys like I see in vids. I can’t do this on my computer, but on my laptop I don’t have this issue. Is it some option I accidentally turned off or something? Thanks.
/r/JupyterNotebooks
https://redd.it/benrfl
Hi guys,
I didn’t know where else to turn, I couldn’t find anything online about this small problem I’m having with jupyter notebook.
When I tab and open the dropdown menu to see the options for the dot notation I can’t scroll through the options with my arrow keys like I see in vids. I can’t do this on my computer, but on my laptop I don’t have this issue. Is it some option I accidentally turned off or something? Thanks.
/r/JupyterNotebooks
https://redd.it/benrfl
reddit
r/JupyterNotebooks - Jupyter Notebook dot notation dropdown menu arrowkeys problem
1 vote and 0 comments so far on Reddit
Good or Bad Idea? IPython Integration With Microsoft OneNote
https://www.reddit.com/r/OneNote/comments/berf4o/good_or_bad_idea_ipython_integration_with/
/r/IPython
https://redd.it/berk3f
https://www.reddit.com/r/OneNote/comments/berf4o/good_or_bad_idea_ipython_integration_with/
/r/IPython
https://redd.it/berk3f
reddit
r/OneNote - Good or Bad Idea? IPython Integration With Microsoft OneNote
6 votes and 6 comments so far on Reddit
Having some trouble with my production server and NGINX with Google Search Console
Hey /r/Django,
​
I have recently put my Django site on production and configured it with NGINX so that it redirects from port 80 to port 8000, so that the URL doens't have to contain the port number when accessing it. I recently was trying to set up the google search console to index my website, and the crawl worked perfectly fine when I put in the URL with port 8000 \[[http://example.com:8000/\]](http://website.com:8000/]), however I get a: `This page is not in the index, but not because of an error. See the details below to learn why it wasn't indexed. Learn More` error when I try to crawl the website default [http://](http://website.com/)[example](http://website.com:8000/])[.com/](http://website.com/). So in essence it isn't crawling when I use the url without the 8000 port even though I can access my site perfectly fine without the port 8000 now.
​
I have spent quite some time researching on this specific issue however I think there is something that I am missing that I might not know about and hope that somebody can point me in the right direction. This is very new to me, I can post relevant information if needed however I would appreciate any guidance in further assisting me with this
/r/django
https://redd.it/beub5v
Hey /r/Django,
​
I have recently put my Django site on production and configured it with NGINX so that it redirects from port 80 to port 8000, so that the URL doens't have to contain the port number when accessing it. I recently was trying to set up the google search console to index my website, and the crawl worked perfectly fine when I put in the URL with port 8000 \[[http://example.com:8000/\]](http://website.com:8000/]), however I get a: `This page is not in the index, but not because of an error. See the details below to learn why it wasn't indexed. Learn More` error when I try to crawl the website default [http://](http://website.com/)[example](http://website.com:8000/])[.com/](http://website.com/). So in essence it isn't crawling when I use the url without the 8000 port even though I can access my site perfectly fine without the port 8000 now.
​
I have spent quite some time researching on this specific issue however I think there is something that I am missing that I might not know about and hope that somebody can point me in the right direction. This is very new to me, I can post relevant information if needed however I would appreciate any guidance in further assisting me with this
/r/django
https://redd.it/beub5v
Website.com
Create Your Free Website | Free Website Builder | Website.com
Create a professional website for free with the Website.com website builder. Domain names, web hosting, website templates, and ecommerce solutions included.
Why Use Anaconda?
Hi, I'm pretty new to python and I was wondering why do you use Anaconda and should I use it, and also what are some downsides of it
/r/Python
https://redd.it/betkoj
Hi, I'm pretty new to python and I was wondering why do you use Anaconda and should I use it, and also what are some downsides of it
/r/Python
https://redd.it/betkoj
reddit
r/Python - Why Use Anaconda?
39 votes and 23 comments so far on Reddit
Python: Lambda, Map, Filter, Reduce Functions explained in 1 simple video
https://youtu.be/w1Iy02rRdE4
/r/Python
https://redd.it/betytq
https://youtu.be/w1Iy02rRdE4
/r/Python
https://redd.it/betytq
YouTube
Python: Lambda, Map, Filter, Reduce Functions
A simple introduction to Pythons basic functions covering Lambda, Map, Filter and Reduce. If you do have any questions with what we covered in this video the...
Simple Linear Regression: How It works? (Python Implementation)
https://www.codeingschool.com/2019/04/simple-linear-regression-how-it-works-python.html
/r/Python
https://redd.it/bevaik
https://www.codeingschool.com/2019/04/simple-linear-regression-how-it-works-python.html
/r/Python
https://redd.it/bevaik
Codeingschool
Simple Linear Regression: How It works? (Python Implementation)
Simple linear regression is an approach for predicting a response using a single feature.
It is assumed that the two variables are linearly related. Hence, we try to find a linear function that predicts the response value(y) as accurately as possible as…
It is assumed that the two variables are linearly related. Hence, we try to find a linear function that predicts the response value(y) as accurately as possible as…
reqparse parser.add_argument()
Hi everyone,
​
I am not sure I understand how to user parser correctly. My confusion is: when adding arguments to the parser, say:
parser.add_argument('username', help = 'This field cannot be blank', required = True)
how does flask know to only look for the required argument in a specific route (in this case /login) ?
I haven't really tested it, but if I have multiple required arguments for different routes, I wonder if the application knows which ones are required for that route.
I would appreciate some help understanding this :) Thank you and happy holiday!
/r/flask
https://redd.it/beywgw
Hi everyone,
​
I am not sure I understand how to user parser correctly. My confusion is: when adding arguments to the parser, say:
parser.add_argument('username', help = 'This field cannot be blank', required = True)
how does flask know to only look for the required argument in a specific route (in this case /login) ?
I haven't really tested it, but if I have multiple required arguments for different routes, I wonder if the application knows which ones are required for that route.
I would appreciate some help understanding this :) Thank you and happy holiday!
/r/flask
https://redd.it/beywgw
reddit
r/flask - reqparse parser.add_argument()
0 votes and 0 comments so far on Reddit
Processing Unicode Data in Python - A Primer to Understand Non-English Data Processing
https://www.pixelstech.net/article/1554875127-Processing-Unicode-Data-in-Python---A-Primer-to-Understand-Non-English-Data-Processing
/r/Python
https://redd.it/beyilp
https://www.pixelstech.net/article/1554875127-Processing-Unicode-Data-in-Python---A-Primer-to-Understand-Non-English-Data-Processing
/r/Python
https://redd.it/beyilp
www.pixelstech.net
Processing Unicode Data in Python - A Primer to Understand Non-English Data Processing
Introduction:Currently we live in a world where people of diverse cultures/backgrounds use electronic devices to express their ideas, do their daily work that earns them their daily bread, and enterta
Testing without tests
I have seen many developers (mostly amateurs and intermediates) write code without tests. When asked about it, they say that they test their code locally, and therefore, dont feel the need to write tests separately.
Is this approach okay? Is TDD really important, or can you get away with simply testing code without writing tests?
/r/Python
https://redd.it/bezsyu
I have seen many developers (mostly amateurs and intermediates) write code without tests. When asked about it, they say that they test their code locally, and therefore, dont feel the need to write tests separately.
Is this approach okay? Is TDD really important, or can you get away with simply testing code without writing tests?
/r/Python
https://redd.it/bezsyu
reddit
r/Python - Testing without tests
0 votes and 5 comments so far on Reddit
Flask, Vuejs, Celery, and MongoEngine project I've been working on
Though I would share my project I'm working on so others can use it as a template. Took me hours to get a module backend that worked well with Celery, Flask, MongoDB and Sockets.
Technologies:
* Flask
* Flask-Scoketio
* Flask-RESTful
* Flask-Login
* Eventlet
* Gunicorn
* Vuejs
* Celery
* MongoEngine
* Docker
​
[Link](https://github.com/jsbroks/coco-annotator)
/r/flask
https://redd.it/bf1212
Though I would share my project I'm working on so others can use it as a template. Took me hours to get a module backend that worked well with Celery, Flask, MongoDB and Sockets.
Technologies:
* Flask
* Flask-Scoketio
* Flask-RESTful
* Flask-Login
* Eventlet
* Gunicorn
* Vuejs
* Celery
* MongoEngine
* Docker
​
[Link](https://github.com/jsbroks/coco-annotator)
/r/flask
https://redd.it/bf1212
GitHub
GitHub - jsbroks/coco-annotator: :pencil2: Web-based image segmentation tool for object detection, localization, and keypoints
:pencil2: Web-based image segmentation tool for object detection, localization, and keypoints - jsbroks/coco-annotator
Python Regular Expressions (15+ videos, beginner to advanced features)
https://www.youtube.com/watch?v=VU60rEXaOXk&list=PLGKQkV4guDKH1TpfM-FvPGLUyjsPGdXOg
/r/Python
https://redd.it/bf0x8r
https://www.youtube.com/watch?v=VU60rEXaOXk&list=PLGKQkV4guDKH1TpfM-FvPGLUyjsPGdXOg
/r/Python
https://redd.it/bf0x8r
YouTube
Python Regular Expressions - part #1
In this video series, we will be tackling Python Regular Expressions.
In this video we will be covering:
1) the importance of '/' and 'r' -- backslash and raw string.
Don't forget to comment on what you would like to see, and how I can improve.
Thanks…
In this video we will be covering:
1) the importance of '/' and 'r' -- backslash and raw string.
Don't forget to comment on what you would like to see, and how I can improve.
Thanks…
Flask textbox fields?
Still very new to flask, so I'm sure there are probably some things that I could have done better/ didn't know you could do. Let me know if there's anything I should do for better practice.
​
I have a program that will take in a bunch of textbox inputs. After clicking a button, I want the result to be displayed. As of right now, the only thing I could really think of was:
form.result.label.text = result
However, that only changes the text box's label. Is there anyways I can have the result be posted into the textbox field? Or is there a label attribute I can use like a gui label? Thanks
#form.py
from flask_wtf import FlaskForm
from wtforms import StringField, IntegerField, SubmitField
from wtforms.validators import DataRequired
class information(FlaskForm):
studentName = StringField('Name', validators=[DataRequired()])
toeflScore = IntegerField('TOEFL', validators=[DataRequired()])
sopScore = IntegerField('SOP', validators=[DataRequired()])
lorScore = IntegerField('LOR', validators=[DataRequired()])
/r/flask
https://redd.it/bf47wz
Still very new to flask, so I'm sure there are probably some things that I could have done better/ didn't know you could do. Let me know if there's anything I should do for better practice.
​
I have a program that will take in a bunch of textbox inputs. After clicking a button, I want the result to be displayed. As of right now, the only thing I could really think of was:
form.result.label.text = result
However, that only changes the text box's label. Is there anyways I can have the result be posted into the textbox field? Or is there a label attribute I can use like a gui label? Thanks
#form.py
from flask_wtf import FlaskForm
from wtforms import StringField, IntegerField, SubmitField
from wtforms.validators import DataRequired
class information(FlaskForm):
studentName = StringField('Name', validators=[DataRequired()])
toeflScore = IntegerField('TOEFL', validators=[DataRequired()])
sopScore = IntegerField('SOP', validators=[DataRequired()])
lorScore = IntegerField('LOR', validators=[DataRequired()])
/r/flask
https://redd.it/bf47wz
reddit
r/flask - Flask textbox fields?
1 vote and 3 comments so far on Reddit
[P] Python package to easily retrain OpenAI's GPT-2 text-generating model on new texts + Colaboratory Notebook to use it w/ GPU for free
Hi all! I just open-sourced a [Python package on GitHub](https://github.com/minimaxir/gpt-2-simple) that lets you retrain the smaller GPT-2 model on your own text with minimal code! (and without fussing around with the CLI like the original repo)
I have also made a [Colaboratory Notebook](https://colab.research.google.com/drive/1VLG8e7YSEwypxU-noRNhsv5dW4NfTGce) which handles both training w/ a GPU **for free** and file I/O to the notebook (which with GPT-2 is a tad tricker).
Let me know if you have any questions! I plan on releasing more demos soon!
/r/MachineLearning
https://redd.it/bf137p
Hi all! I just open-sourced a [Python package on GitHub](https://github.com/minimaxir/gpt-2-simple) that lets you retrain the smaller GPT-2 model on your own text with minimal code! (and without fussing around with the CLI like the original repo)
I have also made a [Colaboratory Notebook](https://colab.research.google.com/drive/1VLG8e7YSEwypxU-noRNhsv5dW4NfTGce) which handles both training w/ a GPU **for free** and file I/O to the notebook (which with GPT-2 is a tad tricker).
Let me know if you have any questions! I plan on releasing more demos soon!
/r/MachineLearning
https://redd.it/bf137p
GitHub
GitHub - minimaxir/gpt-2-simple: Python package to easily retrain OpenAI's GPT-2 text-generating model on new texts
Python package to easily retrain OpenAI's GPT-2 text-generating model on new texts - minimaxir/gpt-2-simple
Anyone hiring Django devs?
Hi, I'm Michael. I've been developing software and web applications for 7 years, proprietary (used by Fortune 500 companies, various colleges, and other clients) and open source.
I have experience in data analysis and visualization (pandas/numpy, highcharts/d3), (including geospatial analysis and visualization (Mapbox, leaflet, Highmaps, Google Maps)), and a bit of machine learning (scikit-learn, numpy).
I typically code in Python/Django, use a PostgreSQL or MySQL database, and use Javascript/Jquery for the front end, though I prefer backend development. I also use git, and I work on a Linux OS.
My latest project is https://datafix.io, which I created in about 150 hours, if you'd like to see some of my work. It's a service where users can either make dataset requests (request that a dataset is created/cleaned), with or without a reward, or make money creating/cleaning these datasets for other users. Please message me with your email for my resume.
Asking for $65k-$85k+ yearly. I am looking for remote, full-time work. I would love a backend role, but I can do full-stack as well
Best, Michael
/r/django
https://redd.it/bf2g7l
Hi, I'm Michael. I've been developing software and web applications for 7 years, proprietary (used by Fortune 500 companies, various colleges, and other clients) and open source.
I have experience in data analysis and visualization (pandas/numpy, highcharts/d3), (including geospatial analysis and visualization (Mapbox, leaflet, Highmaps, Google Maps)), and a bit of machine learning (scikit-learn, numpy).
I typically code in Python/Django, use a PostgreSQL or MySQL database, and use Javascript/Jquery for the front end, though I prefer backend development. I also use git, and I work on a Linux OS.
My latest project is https://datafix.io, which I created in about 150 hours, if you'd like to see some of my work. It's a service where users can either make dataset requests (request that a dataset is created/cleaned), with or without a reward, or make money creating/cleaning these datasets for other users. Please message me with your email for my resume.
Asking for $65k-$85k+ yearly. I am looking for remote, full-time work. I would love a backend role, but I can do full-stack as well
Best, Michael
/r/django
https://redd.it/bf2g7l
Expanding magics
How could I extend the Jupyter Redshift magic module to respond to a commands like %DESCRIBE DOMAIN member, which would then pull catalog info from a Data Calogue and present it to the user as SQL results?
/r/JupyterNotebooks
https://redd.it/bf7oax
How could I extend the Jupyter Redshift magic module to respond to a commands like %DESCRIBE DOMAIN member, which would then pull catalog info from a Data Calogue and present it to the user as SQL results?
/r/JupyterNotebooks
https://redd.it/bf7oax
reddit
r/JupyterNotebooks - Expanding magics
1 vote and 0 comments so far on Reddit
Intro to Python :: Learn Python by Nina Zakharenko
https://www.learnpython.dev/02-introduction-to-python/
/r/Python
https://redd.it/bf7xdn
https://www.learnpython.dev/02-introduction-to-python/
/r/Python
https://redd.it/bf7xdn
www.learnpython.dev
Intro to Python
Free Learn Python Course by Nina Zakharenko - An intensive two day introduction and intermediate course on Python. Video course published on Frontend Masters.
Live Data Plotting with Matplotlib
Below is a program I am using to read and plot the value of a sensor (simply a potentiometer at the moment). I am using two DIGI XBEE Pro SX Modems to transceive the data. The majority of the code below is provided by DIGI. The program displays the value of the sensor on the screen but when the compiler reaches the plotting section it simply doesn't execute. There are no errors. I am using Python 3.8, jupyter notebook, and anaconda.
\#########################################################################
from digi.xbee.devices import XBeeDevice
from [digi.xbee.io](https://digi.xbee.io) import IOLine, IOMode
​
import matplotlib.pyplot as plt
import matplotlib.animation as animation
import time
import re
import csv
import serial
import datetime as dt
import math
%matplotlib notebook
​
​
\# TODO: Replace with the serial port where your local module is connected to.
PORT = "COM13"
\# TODO: Replace with the baud rate of your local module.
BAUD\_RATE = 9600
​
REMOTE\_NODE\_ID = "REMOTE"
​
IO\_SAMPLING\_RATE = 1 # 0.5 seconds.
IOLINE\_IN = IOLine.DIO3\_AD3
i=0
​
def main():
\#print(" +----------------------------------------------+")
\#print(" | XBee Python Library Handle IO Samples Sample |")
\#print(" +----------------------------------------------+\\n")
​
device = XBeeDevice(PORT, BAUD\_RATE)
global i
​
try:
[device.open](https://device.open)()
\# Obtain the remote XBee device from the XBee network.
xbee\_network = device.get\_network()
remote\_device = xbee\_network.discover\_device(REMOTE\_NODE\_ID)
if remote\_device is None:
print("Could not find the remote device")
exit(1)
​
\# Set the local device as destination address of the remote.
remote\_device.set\_dest\_address(device.get\_64bit\_addr())
​
\# Enable periodic sampling every IO\_SAMPLING\_RATE seconds in the remote device.
remote\_device.set\_io\_sampling\_rate(IO\_SAMPLING\_RATE)
​
\# Register a
/r/IPython
https://redd.it/bf8dg2
Below is a program I am using to read and plot the value of a sensor (simply a potentiometer at the moment). I am using two DIGI XBEE Pro SX Modems to transceive the data. The majority of the code below is provided by DIGI. The program displays the value of the sensor on the screen but when the compiler reaches the plotting section it simply doesn't execute. There are no errors. I am using Python 3.8, jupyter notebook, and anaconda.
\#########################################################################
from digi.xbee.devices import XBeeDevice
from [digi.xbee.io](https://digi.xbee.io) import IOLine, IOMode
​
import matplotlib.pyplot as plt
import matplotlib.animation as animation
import time
import re
import csv
import serial
import datetime as dt
import math
%matplotlib notebook
​
​
\# TODO: Replace with the serial port where your local module is connected to.
PORT = "COM13"
\# TODO: Replace with the baud rate of your local module.
BAUD\_RATE = 9600
​
REMOTE\_NODE\_ID = "REMOTE"
​
IO\_SAMPLING\_RATE = 1 # 0.5 seconds.
IOLINE\_IN = IOLine.DIO3\_AD3
i=0
​
def main():
\#print(" +----------------------------------------------+")
\#print(" | XBee Python Library Handle IO Samples Sample |")
\#print(" +----------------------------------------------+\\n")
​
device = XBeeDevice(PORT, BAUD\_RATE)
global i
​
try:
[device.open](https://device.open)()
\# Obtain the remote XBee device from the XBee network.
xbee\_network = device.get\_network()
remote\_device = xbee\_network.discover\_device(REMOTE\_NODE\_ID)
if remote\_device is None:
print("Could not find the remote device")
exit(1)
​
\# Set the local device as destination address of the remote.
remote\_device.set\_dest\_address(device.get\_64bit\_addr())
​
\# Enable periodic sampling every IO\_SAMPLING\_RATE seconds in the remote device.
remote\_device.set\_io\_sampling\_rate(IO\_SAMPLING\_RATE)
​
\# Register a
/r/IPython
https://redd.it/bf8dg2