Jupyter Lab RKernel doesn't start. [Troubleshooting]
Hi, I am new to jupyter and also jupyter lab.
Installed it and it seems to work fine until i try to start the RKernel.
This is the error output from commandline.
the icu package is installed and the libicui18n.so file is located in /usr/lib/libicui18n.so
Error in dyn.load(file, DLLpath = DLLpath, ...) :
unable to load shared object '/home/johannes/R/x86_64-pc-linux-gnu-library/3.4/stringi/libs/stringi.so':
libicui18n.so.60: cannot open shared object file: No such file or directory
Calls: :: ... tryCatch -> tryCatchList -> tryCatchOne -> <Anonymous>
Execution halted
In the console I start and work with R normally.
Python Kernel works fine.
I am using Arch Linux...
Is this a known beginner issue?
/r/IPython
https://redd.it/8cwby7
Hi, I am new to jupyter and also jupyter lab.
Installed it and it seems to work fine until i try to start the RKernel.
This is the error output from commandline.
the icu package is installed and the libicui18n.so file is located in /usr/lib/libicui18n.so
Error in dyn.load(file, DLLpath = DLLpath, ...) :
unable to load shared object '/home/johannes/R/x86_64-pc-linux-gnu-library/3.4/stringi/libs/stringi.so':
libicui18n.so.60: cannot open shared object file: No such file or directory
Calls: :: ... tryCatch -> tryCatchList -> tryCatchOne -> <Anonymous>
Execution halted
In the console I start and work with R normally.
Python Kernel works fine.
I am using Arch Linux...
Is this a known beginner issue?
/r/IPython
https://redd.it/8cwby7
reddit
Jupyter Lab RKernel doesn't start. [Troubleshooting] • r/IPython
Hi, I am new to jupyter and also jupyter lab. Installed it and it seems to work fine until i try to start the RKernel. This is the error output...
What's everyone working on this week?
Tell /r/python what you're working on this week! You can be bragging, grousing, sharing your passion, or explaining your pain. Talk about your current project or your pet project; whatever you want to share.
/r/Python
https://redd.it/8cwslw
Tell /r/python what you're working on this week! You can be bragging, grousing, sharing your passion, or explaining your pain. Talk about your current project or your pet project; whatever you want to share.
/r/Python
https://redd.it/8cwslw
reddit
What's everyone working on this week? • r/Python
Tell /r/python what you're working on this week! You can be bragging, grousing, sharing your passion, or explaining your pain. Talk about your...
I made a command-line tool that instantly fetches Stack Overflow results when you get a compiler error
https://github.com/shobrook/rebound
/r/Python
https://redd.it/8cwq72
https://github.com/shobrook/rebound
/r/Python
https://redd.it/8cwq72
GitHub
GitHub - shobrook/rebound: Instant Stack Overflow results whenever an exception is thrown
Instant Stack Overflow results whenever an exception is thrown - shobrook/rebound
Migrating our API Gateway from Flask to Django
https://tech.gadventures.com/migrating-our-api-gateway-from-flask-to-django-88a585c4df1a
/r/django
https://redd.it/8cxvlq
https://tech.gadventures.com/migrating-our-api-gateway-from-flask-to-django-88a585c4df1a
/r/django
https://redd.it/8cxvlq
Medium
Migrating our API Gateway from Flask to Django
At G Adventures, we’ve been building a publicly accessible API for the past three years. We’ve been pushing hard to make the G Adventures…
Jupyter and Scala
On jupyter website there is information about support for Scala. Has any of you used such a kernel?
/r/IPython
https://redd.it/8cutic
On jupyter website there is information about support for Scala. Has any of you used such a kernel?
/r/IPython
https://redd.it/8cutic
reddit
Jupyter and Scala • r/IPython
On jupyter website there is information about support for Scala. Has any of you used such a kernel?
[Project] Working with StarCraft II AIs on Google's free Google Colab Environment
https://medium.com/@n0mad/how-i-trained-starcraft-2-ais-using-googles-free-gpus-44bc635b0418
/r/MachineLearning
https://redd.it/8cwhe2
https://medium.com/@n0mad/how-i-trained-starcraft-2-ais-using-googles-free-gpus-44bc635b0418
/r/MachineLearning
https://redd.it/8cwhe2
Medium
How I trained StarCraft 2 AIs using Google’s free GPUs
How to train StarCraft 2 bots with free GPUs, plus, a long debugging story……
Django Celery: Run automated Task once for each item in database
Working on a school project that requires sending an email to each person that created a page once per day, but needs to do it for each page and I'm just not sure where I need to go from here.
From Tasks.py
from celery.task.schedules import crontab
from celery.decorators import periodic_task
from .Listing import Listing
from celery.utils.log import get_task_logger
from datetime import datetime
logger = get_task_logger(__name__)
@periodic_task(run_every=(crontab(hour="10", minute="10")))
def run_daily_emails():
Listing.daily_hit_count()
From Listing.py
def daily_hit_count(self):
send_mail('Daily Hit Count!', get_templet('templates/realestate/HitCountEmail.html').render(
Context({
'MLSNumber': self.MLSNumber,
'dailyHitCount': self.dailyHitCount,
'totalHitCount': self.totalHitCount
})
), 'AutoPoshPlace@gmail.com', [self.listing_agent.email],
fail_silently=False)
self.dailyHitCount = 0
I need this to iterate through for every listing in the database, but I'm not sure how to do that.
/r/django
https://redd.it/8cx7y2
Working on a school project that requires sending an email to each person that created a page once per day, but needs to do it for each page and I'm just not sure where I need to go from here.
From Tasks.py
from celery.task.schedules import crontab
from celery.decorators import periodic_task
from .Listing import Listing
from celery.utils.log import get_task_logger
from datetime import datetime
logger = get_task_logger(__name__)
@periodic_task(run_every=(crontab(hour="10", minute="10")))
def run_daily_emails():
Listing.daily_hit_count()
From Listing.py
def daily_hit_count(self):
send_mail('Daily Hit Count!', get_templet('templates/realestate/HitCountEmail.html').render(
Context({
'MLSNumber': self.MLSNumber,
'dailyHitCount': self.dailyHitCount,
'totalHitCount': self.totalHitCount
})
), 'AutoPoshPlace@gmail.com', [self.listing_agent.email],
fail_silently=False)
self.dailyHitCount = 0
I need this to iterate through for every listing in the database, but I'm not sure how to do that.
/r/django
https://redd.it/8cx7y2
reddit
Django Celery: Run automated Task once for each item in... • r/django
Working on a school project that requires sending an email to each person that created a page once per day, but needs to do it for each page and...
Django Admin Page Routing to Different Urls
Hi,
Whenever I try to connect to my admin page on my local computer at localhost:8000/admin it tries to re-route me to a different page localhost:8000/admin/profile_html. My urlpatterns are as follows:
main_app:
urlpatterns = [
path('farms/', include('farms.urls', namespace='farms')),
path('admin/', admin.site.urls),
]
farm_app:
app_name = 'farms'
urlpatterns = [
path('', views.index, name='index'),
path('about/', views.about, name='about'),
path('form/', views.profile_form, name='profile_form'),
path('profile/', views.profile, name='profile'),
# Registration Urls
path('login/', views.login, name='login'),
path('signup/', views.signup, name='signup'),
]
Would anyone know why Django tries to do this? Thanks!
/r/django
https://redd.it/8d0557
Hi,
Whenever I try to connect to my admin page on my local computer at localhost:8000/admin it tries to re-route me to a different page localhost:8000/admin/profile_html. My urlpatterns are as follows:
main_app:
urlpatterns = [
path('farms/', include('farms.urls', namespace='farms')),
path('admin/', admin.site.urls),
]
farm_app:
app_name = 'farms'
urlpatterns = [
path('', views.index, name='index'),
path('about/', views.about, name='about'),
path('form/', views.profile_form, name='profile_form'),
path('profile/', views.profile, name='profile'),
# Registration Urls
path('login/', views.login, name='login'),
path('signup/', views.signup, name='signup'),
]
Would anyone know why Django tries to do this? Thanks!
/r/django
https://redd.it/8d0557
reddit
Django Admin Page Routing to Different Urls • r/django
Hi, Whenever I try to connect to my admin page on my local computer at localhost:8000/admin it tries to re-route me to a different page...
Jupyter Notebooks Can't Fix the Scientific Paper
https://www.oliversherouse.com/2018/04/17/notebooks_arent_papers.html
/r/pystats
https://redd.it/8czxm1
https://www.oliversherouse.com/2018/04/17/notebooks_arent_papers.html
/r/pystats
https://redd.it/8czxm1
Oliversherouse
Jupyter Notebooks Can't Fix the Scientific Paper
Oliver Sherouse writes on Data, Python, and Culture
Plotly for effective data visualization
https://datascience693264219.wordpress.com/2018/03/29/the-journey-begins/
/r/Python
https://redd.it/8cvref
https://datascience693264219.wordpress.com/2018/03/29/the-journey-begins/
/r/Python
https://redd.it/8cvref
Wordpress
Plotly for effective data visualization
Author: Ruthger Righart Blogs: Web: Plotly is well-known for its aesthetically appeasing visualizations and user interaction. This Plotly guide is unlike other guides. Excellent introductory guides…
Modern Django: Part 3: Creating an API and integrating with React
http://v1k45.com/blog/modern-django-part-3-creating-an-api-and-integrating-with-react/
/r/django
https://redd.it/8d1oxw
http://v1k45.com/blog/modern-django-part-3-creating-an-api-and-integrating-with-react/
/r/django
https://redd.it/8d1oxw
[AF] How does the User model in Flask-Blogging work?
I pushed myself to learn more Flask and completed all of [Miguel Grinberg's epic Flask tutorial](http://blog.miguelgrinberg.com/post/the-flask-mega-tutorial-part-i-hello-world). Everything there made a lot of sense, and the rationale was all laid out clearly for why and how you'd construct things the way you do.
Now, I'm trying to apply that knowledge to DIY'ing a personal blog with [Flask-Blogging](http://flask-blogging.readthedocs.io/en/latest/). I keep running into the same error:
"sqlalchemy.exc.InvalidRequestError: Table 'user' is already defined for this MetaData instance."
I recognize this isn't StackOverflow, so I'm not looking to resolve this error as much as ensure I have the right context for what I'm trying to build.
# My Questions
1. Flask-Blogging notes that there are ways to use multiple databases via SQLAlchemy. Should the Blogging tools be in a separate database from the rest of the application? I understood that to be relevant to a site with multiple functions, but for a standalone blog I thought I could put it all into one app.
2. Is this a case of a circular database import or importing it twice? db.create_all() is something I'm still grappling with.
3. Flask-Blogging notes there are i[ssues with tables being rewritten in Alembic version 0.3.0 and earlier](https://flask-blogging.readthedocs.io/en/latest/#useful-tips). I am using version Alembic 0.9.9 and Flask-Blogging 1.0.2. I've tried both with their fix and without, to no effect.
Here's my code, which is a mashup of both. Note that Flask-Blogging offers some specific tips on using Flask-SQLAlchemy as well as Alembic (via Flask-Migrate).
###__init__.py
from flask import Flask, Markup
from flask_sqlalchemy import SQLAlchemy
from flask_migrate import Migrate
from flask_login import LoginManager
from config import Config
from flask_blogging import SQLAStorage, BloggingEngine
app = Flask(__name__)
app.config.from_object(Config)
db = SQLAlchemy(app)
storage = SQLAStorage(db=db)
db.create_all()
blog_engine = BloggingEngine(app, storage)
migrate = Migrate(app, db)
login = LoginManager(app)
login.login_view = 'login'
from app import routes, models, errors
###config.py
import os
basedir = os.path.abspath(os.path.dirname(__file__))
class Config(object):
SECRET_KEY = os.environ.get('SECRET_KEY') or 'you-will-never-guess'
SQLALCHEMY_DATABASE_URI = os.environ.get('DATABASE_URL') or \
'sqlite:///' + os.path.join(basedir, 'app.db')
SQLALCHEMY_TRACK_MODIFICATIONS = False
BLOGGING_URL_PREFIX = "/blog"
BLOGGING_SITEURL = "http://localhost:5000"
BLOGGING_SITENAME = "Testing"
BLOGGING_KEYWORDS = ["blog", "meta", "keywords"]
FILEUPLOAD_IMG_FOLDER = "fileupload"
FILEUPLOAD_PREFIX = "/fileupload"
FILEUPLOAD_ALLOWED_EXTENSIONS = ["png", "jpg", "jpeg", "gif"]
BLOGGING_TWITTER_USERNAME = "@xyz"
###models.py
from datetime import datetime
from app import db, login, blog_engine
from flask_login import UserMixin
from werkzeug.security import generate_password_hash, check_password_hash
class User(db.Model, UserMixin):
id = db.Column(db.Integer, primary_key=True)
username = db.Column(db.String(80), unique=True)
email = db.Column(db.String(120), unique=True)
def __repr__(self):
return '<User %r>' % self.username
def get_name(self):
return self.username
def set_password(self, password):
self.password_hash = generate_password_hash(password)
def check_password(self, password):
return check_password_hash(self.password_hash, password)
@login.user_loader
@blog_engine.user_loader
def load_user(user_id):
user = User.query.filter_by(id=user_id).first()
print (user_id, user.get_name())
return user
Any help would be awesome, I've been wrestling with this persona
I pushed myself to learn more Flask and completed all of [Miguel Grinberg's epic Flask tutorial](http://blog.miguelgrinberg.com/post/the-flask-mega-tutorial-part-i-hello-world). Everything there made a lot of sense, and the rationale was all laid out clearly for why and how you'd construct things the way you do.
Now, I'm trying to apply that knowledge to DIY'ing a personal blog with [Flask-Blogging](http://flask-blogging.readthedocs.io/en/latest/). I keep running into the same error:
"sqlalchemy.exc.InvalidRequestError: Table 'user' is already defined for this MetaData instance."
I recognize this isn't StackOverflow, so I'm not looking to resolve this error as much as ensure I have the right context for what I'm trying to build.
# My Questions
1. Flask-Blogging notes that there are ways to use multiple databases via SQLAlchemy. Should the Blogging tools be in a separate database from the rest of the application? I understood that to be relevant to a site with multiple functions, but for a standalone blog I thought I could put it all into one app.
2. Is this a case of a circular database import or importing it twice? db.create_all() is something I'm still grappling with.
3. Flask-Blogging notes there are i[ssues with tables being rewritten in Alembic version 0.3.0 and earlier](https://flask-blogging.readthedocs.io/en/latest/#useful-tips). I am using version Alembic 0.9.9 and Flask-Blogging 1.0.2. I've tried both with their fix and without, to no effect.
Here's my code, which is a mashup of both. Note that Flask-Blogging offers some specific tips on using Flask-SQLAlchemy as well as Alembic (via Flask-Migrate).
###__init__.py
from flask import Flask, Markup
from flask_sqlalchemy import SQLAlchemy
from flask_migrate import Migrate
from flask_login import LoginManager
from config import Config
from flask_blogging import SQLAStorage, BloggingEngine
app = Flask(__name__)
app.config.from_object(Config)
db = SQLAlchemy(app)
storage = SQLAStorage(db=db)
db.create_all()
blog_engine = BloggingEngine(app, storage)
migrate = Migrate(app, db)
login = LoginManager(app)
login.login_view = 'login'
from app import routes, models, errors
###config.py
import os
basedir = os.path.abspath(os.path.dirname(__file__))
class Config(object):
SECRET_KEY = os.environ.get('SECRET_KEY') or 'you-will-never-guess'
SQLALCHEMY_DATABASE_URI = os.environ.get('DATABASE_URL') or \
'sqlite:///' + os.path.join(basedir, 'app.db')
SQLALCHEMY_TRACK_MODIFICATIONS = False
BLOGGING_URL_PREFIX = "/blog"
BLOGGING_SITEURL = "http://localhost:5000"
BLOGGING_SITENAME = "Testing"
BLOGGING_KEYWORDS = ["blog", "meta", "keywords"]
FILEUPLOAD_IMG_FOLDER = "fileupload"
FILEUPLOAD_PREFIX = "/fileupload"
FILEUPLOAD_ALLOWED_EXTENSIONS = ["png", "jpg", "jpeg", "gif"]
BLOGGING_TWITTER_USERNAME = "@xyz"
###models.py
from datetime import datetime
from app import db, login, blog_engine
from flask_login import UserMixin
from werkzeug.security import generate_password_hash, check_password_hash
class User(db.Model, UserMixin):
id = db.Column(db.Integer, primary_key=True)
username = db.Column(db.String(80), unique=True)
email = db.Column(db.String(120), unique=True)
def __repr__(self):
return '<User %r>' % self.username
def get_name(self):
return self.username
def set_password(self, password):
self.password_hash = generate_password_hash(password)
def check_password(self, password):
return check_password_hash(self.password_hash, password)
@login.user_loader
@blog_engine.user_loader
def load_user(user_id):
user = User.query.filter_by(id=user_id).first()
print (user_id, user.get_name())
return user
Any help would be awesome, I've been wrestling with this persona
Android app, PyFCM, Flask, MySql
Hello everyone! I go straight to the point: I use pythonanywhere.com and I'm developing an application for Android that interfaces with a Python server that uses Flask.
The application makes extensive use of json to get data from the database and I would a notification on the device when a row has been added to a table and a notification when a row already downloaded has been changed.
I imagine it is too expensive to do a service that checks every interval if the json on the server are the same as those already downloaded, so I came to the conclusion (at least for the first notification) to listen on the database and launch a notification from the server when an INSERT query was performed on a given table. If the user is interested then he will give the ok to download the new json.
My problem is that I did not understand how I can properly use the tools written in the title to do this, or at least what is the most effective way to get what I described and I would like to receive some advice from those more experienced than me .
Thanks in advance!
/r/flask
https://redd.it/8c3dd2
Hello everyone! I go straight to the point: I use pythonanywhere.com and I'm developing an application for Android that interfaces with a Python server that uses Flask.
The application makes extensive use of json to get data from the database and I would a notification on the device when a row has been added to a table and a notification when a row already downloaded has been changed.
I imagine it is too expensive to do a service that checks every interval if the json on the server are the same as those already downloaded, so I came to the conclusion (at least for the first notification) to listen on the database and launch a notification from the server when an INSERT query was performed on a given table. If the user is interested then he will give the ok to download the new json.
My problem is that I did not understand how I can properly use the tools written in the title to do this, or at least what is the most effective way to get what I described and I would like to receive some advice from those more experienced than me .
Thanks in advance!
/r/flask
https://redd.it/8c3dd2
reddit
Android app, PyFCM, Flask, MySql • r/flask
Hello everyone! I go straight to the point: I use pythonanywhere.com and I'm developing an application for Android that interfaces with a Python...
Basic Data Analysis on Twitter with Python
https://medium.com/@lucaskohorst/basic-data-analysis-on-twitter-with-python-251c2a85062e
/r/pystats
https://redd.it/8czi0y
https://medium.com/@lucaskohorst/basic-data-analysis-on-twitter-with-python-251c2a85062e
/r/pystats
https://redd.it/8czi0y
Medium
Basic Data Analysis on Twitter with Python
After creating the Free Wtr bot using Tweepy and Python and this code, I wanted a way to see how Twitter users are perceiving the bot…
Zulip 1.8: Open source team chat, powered by Python 3
http://blog.zulip.org/2018/04/18/zulip-1-8-released/
/r/Python
https://redd.it/8d1kt3
http://blog.zulip.org/2018/04/18/zulip-1-8-released/
/r/Python
https://redd.it/8d1kt3
The Zulip Blog
Zulip 1.8: Open-source team chat
We’re excited to announce the release of Zulip Server 1.8, containing hundreds
of new features and bug fixes.
Zulip is the world’s most productive team chat software,
an alternative to Slack, HipChat, and IRC. Zulip combines the immediacy of chat
with the…
of new features and bug fixes.
Zulip is the world’s most productive team chat software,
an alternative to Slack, HipChat, and IRC. Zulip combines the immediacy of chat
with the…
Lessons learned from migrating to Python 3
https://able.bio/rhett/lessons-learned-from-migrating-to-python-3--27jsj82
/r/Python
https://redd.it/8d442u
https://able.bio/rhett/lessons-learned-from-migrating-to-python-3--27jsj82
/r/Python
https://redd.it/8d442u
Able
Lessons learned from migrating to Python 3
As the Python 2 End of Life date approaches, many developers will need to start looking at migrating their builds to Python 3. I sat down with Dan Palmer to discuss Thread's recent migrat...
Interactive Graphs
I am building some regressions and machine learning networks. For visualization purposes, I wanted to show a graph of the true values versus the predicted values of different methods. Rather than just a scatter plot with 5 different lines, I was wondering if there are any guides out there to build a graph where you can click a button with the name of the method, and it overlays the line of the predicted values of that method.
Thanks!
/r/IPython
https://redd.it/8d0vdy
I am building some regressions and machine learning networks. For visualization purposes, I wanted to show a graph of the true values versus the predicted values of different methods. Rather than just a scatter plot with 5 different lines, I was wondering if there are any guides out there to build a graph where you can click a button with the name of the method, and it overlays the line of the predicted values of that method.
Thanks!
/r/IPython
https://redd.it/8d0vdy
reddit
Interactive Graphs • r/IPython
I am building some regressions and machine learning networks. For visualization purposes, I wanted to show a graph of the true values versus the...
Is it possible to remove brainfuck from list of Languages in notebook?
Not the Kernel, i mean the list if languages used in the text editor for syntax highlighting. I suspect my employer would prefer that particular four-letter word not being in the list.
Thanks
/r/JupyterNotebooks
https://redd.it/8d53aq
Not the Kernel, i mean the list if languages used in the text editor for syntax highlighting. I suspect my employer would prefer that particular four-letter word not being in the list.
Thanks
/r/JupyterNotebooks
https://redd.it/8d53aq
reddit
r/JupyterNotebooks - Is it possible to remove brainfuck from list of Languages in notebook?
5 votes and 2 comments so far on Reddit
What are the topics that are not currently relevant and what are other topics that needs to be added to this learning journey?[X-Post from r/learnmachinelearning]
I have tried looking at many learning resources including [Open Data science Masters](http://datasciencemasters.org/) among others. But i found [this](http://nirvacana.com/thoughts/wp-content/uploads/2018/01/RoadToDataScientist1.png) particular path where topics are represented as metro stops and all the journey as a metro map. This covers the list of topics which i felt were not very broadly classified and not narrow at the same time.
My query now is the [blog](http://nirvacana.com/thoughts/2013/07/08/becoming-a-data-scientist/) by author was written in 2013 which makes it 5 years old. What are the topics that got obsolete and what topics should be added to this map to make it more relevant to current time.?
/r/pystats
https://redd.it/8cyluq
I have tried looking at many learning resources including [Open Data science Masters](http://datasciencemasters.org/) among others. But i found [this](http://nirvacana.com/thoughts/wp-content/uploads/2018/01/RoadToDataScientist1.png) particular path where topics are represented as metro stops and all the journey as a metro map. This covers the list of topics which i felt were not very broadly classified and not narrow at the same time.
My query now is the [blog](http://nirvacana.com/thoughts/2013/07/08/becoming-a-data-scientist/) by author was written in 2013 which makes it 5 years old. What are the topics that got obsolete and what topics should be added to this map to make it more relevant to current time.?
/r/pystats
https://redd.it/8cyluq
The best of Python: a collection of my favorite articles from 2017 and 2018 (so far)
https://medium.freecodecamp.org/python-collection-of-my-favorite-articles-8469b8455939
/r/Python
https://redd.it/8d591m
https://medium.freecodecamp.org/python-collection-of-my-favorite-articles-8469b8455939
/r/Python
https://redd.it/8d591m
freeCodeCamp.org
The best of Python: a collection of my favorite articles from 2017 and 2018 (so far)
My intention with publishing this collection