Import data and show data not working in jupyter lab - python

I am currently trying to build a machine learning model through watching a youtube video online, I am currently following the intro steps, downloaded juypter-lab and have imported the needed libraries and have tried to use the "data" command so that it can read the "housing.csv" file. However no matter how many times I try there is no data chart generated like in the tutorial video please help me figure out what the issue is.
It also seems as if the program did not even recognize the 4 import library commands
*Edit: I think there is a problem with my workspace? Whenever I click run nothing happens
[Tutorial jupyter-lab]
My Jupyter-lab
I have tried watching videos on solving the problem for 30 minutes without a solution so far

Related

Error while using jupyter-datatables plugin in Jupyter Notebook

I am working with some data frames and recently came across jupyter-datatables plugin that gives a better look and feel of data frames when loaded into jupyter notebook.
so the below commands worked well for me for the first time-
pip install jupyter-require
pip install jupyter-datatables
from jupyter_datatables import init_datatables_mode
init_datatables_mode()
but now I am facing issues while loading the tables and getting error messages like the ones highlighted below:
OR this -
I am tired of reloading it ..sometimes it works but mostly it doesn't.
Tried finding answers but no luck.

Access Webcam in Jupyter Notebook on Xilinx Pynq FPGA

Hey guys I want to get the live video frames from my usb webcam connected to my Pynq FPGA. The goal is to make motion detection on each frame but I've been struggling to get a live video. I've tried the first example in this link but I get a really bad frame rate. I tried to get a better rate by adding the following line:vc.set(cv2.CAP_PROP_FPS, 60) but it didn't change anything. I tried an example in MATLAB and I had no problems connecting to the webcam and I had a smooth frame rate.
I've read that OpenCV can't be used together with Python3 yet but I still get images in the notebook what I don't understand. I also don't know how to install other packages or libraries like pygame for jupyter notebooks on the pynq, it says everywhere that I have to enter pip install "name" and put the library in the site-packages directory but I haven't seen that directory on jupyter notebooks. So I'm trying to find a way without installing new libraries.
I really need your help guys, do you have some suggestions how to get a live video stream from my webcam on jupyter notebooks?
OpenCV can work with python3. I am using that
at first you need to install pip, it is pretty easy flow.
After that connect the board to the web and use pip install

Encountring an error with videos - Kivy on Windows 7

I want to make an application with Kivy that can manipulate videos, my problem is that i can't play videos when i am using kivy, my operating system is Windows7.
In the demo example given with Kivy, here is the result :
in this youtube video (https://www.youtube.com/watch?v=8zSNzUAfohA), in minute 1h18min30sec the video is actually working
The result i had before was this picture :
I hope u guys know what is the problem source.
Thank you for your time :)
Install kivy.deps.gstreamer if you don't have it yet. Catalog should then work.
The second image looks like you have non-existing files included.

History saving thread error when trying to open Pandas

I just installed IPython on a remote desktop at work. I had to create a shortcut on my desktop to connect to IPython because the remote desktop does not have internet access. I am able to successfully open the IPython notebook. However, when I try to import pandas
import pandas as pd
I get this error that I have never seen before
The history saving thread hit an unexpected error (OperationalError('database or disk is full',)).History will not be written to the database.
Does this error relate to how it was installed on the remote desktop?
I suffered from this problem for a long time. My dirty fix was to simply restart the kernel and go about my work. However, I did find a way which eliminated it for good. This question seems to have mixed answers for different users. I'll try to list all based on answers elsewhere (all links at the end).
So the issue seems to be because of a certain nbsignatures.db file. And we need to simply remove it to solve the issue. You may find the file here in any one of the locations:
~/.local/share/jupyter/nbsignatures.db (I found mine here)
~/.ipython/profile_default/security/nbsignatures.db
~/Library/Jupyter/nbsignatures.db
All links:
https://github.com/ipython/ipython/issues/9293
IPython Notebook error: Error loading notebook

Why python.exe stopped working?

I try to use OpenCV for Python. I have just two lines of the code:
import cv
capture = cv.CreateFileCapture('test.avi')
If I run this code from the command line, Windows creates a window with the following message:
python.exe stopped working
A problem caused the program to stop working correctly.
Windows will close the program and notify you if a solution is available.
What can be the a reason of that?
I would like to add some details. Not sure if they are relevant. In the examples that I found people use cvCreateFileCapture instead of cv.CreateFileCapture. But in this case my program generate a NameError (cvCreateFileCapture is not found).
In general I was able to do a simple stuff with the OpenCV (so, it is installed and it works). For example I was able to change format of an image:
import cv
im = cv.LoadImageM("test.jpg")
print type(im)
cv.SaveImage("test.png", im)
ADDED
"In OpenCV2.2\samples\python" I found many *.py samples. I run some of them and they work fine (I see some animation and so on). The I tried to find a file that contains "CreateFileCapture". I found only one such file (minidemo.py) and I run it. As a result I got the same problem as described above.
Python on opencv has changed, see here make sure you have the latest opencv install - you might also need numpy

Categories

Resources