Category "jupyter-notebook"

Keras model - high accuracy on natively executed code, fails to learn in colab

I am doing classification of citrus leaves dataset. I came up with a very basic model and ran it in Jupyter notebook on my machine, using anaconda. Exact same m

Dask-SLURMCluster: [Errno 104] Connection reset by peer

I'm running into a problem using a Xarray together with SLURMcluster from Dask. I'm using pandas_plink to load some data into a Xarray, then filtering it and ma

Python & Matplotlib: Make 3D plot interactive in Jupyter Notebook

I use Jupyter Notebook to make analysis of datasets. There are a lot of plots in the notebook, and some of them are 3d plots. I'm wondering if it is possible t

Import Image from Google Drive to Google Colab

I have mounted my Google drive to my colab notebook: from google.colab import drive drive.mount("/content/gdrive") I can import csv files through it, in my cas

Run py file with variable name in jupyter notebook

I am using %run to run a py file from inside a jupyter notebook, but I don't want to edit every time the name of the py file name changes. Is there a way to use

How to wrap code/text in Jupyter notebooks

I am using jupyter-notebooks for python coding. Is there a way to wrap text/code in a jupyter notebook code cell? Picture provided below. By wrap text mea

Jupyter notebook Application launch error

When I try to launch Jupyter notebook from Anaconda3 I get this Application launch error: Fail to get yarn configuration. /root/anaconda3/lib/python3.8/site-pac

Change jupyter notebook server password

I would like to change my jupyter notebook server's password to something else. I see on Jupyter's documentation (http://jupyter-notebook.readthedocs.org/en/lat

Failed to save 'file.ipynb ': Cannot read properties of undefined (reading 'logger')

So usually i open my terminal and paste a ssh target link like the one below and then open localhost:1234 on some browser like chrome.I use this server to run h

Not able to see all the methods under dt accessor in Jupyter notebook

Maybe a silly question. I have been trying to use dt accessor in pandas to use datetime methods on certain date fields in my Data Frame. Not sure why, but the a

Matplotlib mpl_connect not working when placed in subroutine called by Jupyter notebook

I'm working with the Draggable Rectangles example provided in the interactive matplotlib example online: https://matplotlib.org/stable/users/explain/event_handl

Unable to start Jupyter notebook on VS Code

(Using latest miniconda + VS Code on 64-bit Windows10:) After clean reinstalling VS Code, I can no longer launch jupyter notebook from within it. When I tried t

A simple way to view ipython notebook

I am really new to IPython/Jupyter notebook. I just created one notebook (.ipynb) and I want to share it on my webpage. Specifically, I want to add a link, and

Enable word wrap in JupyterLab code editor

I would like to enable word wrap for the code cells in jupyterlab, but do not manage to find how. Already tried: File --> Settings --> Text Editor -->

Avoid restarting Jupyter kernel in package develop mode?

I am working on a python package as a developer. The package is stored in a git repo and I use a local branch to debug/fix this package. I use Jupyter notebooks

No module named 'requests' in Jupyter with Python3, but "Requirement already satisfied" for Python3

I'm on a macOS with Catalina, running my environment from venv. I'm trying to import requests within a Jupyter notebook Python3, but I'm getting the following e

Import pandas could not be resolved from source Pylance(reportMissingModuleSource)

I've been trying to use the packages pandas, numpy, matplotlib, seaborn in my "Visual Studio Code", but the program keeps showing me the following message: "im

Inserting with Foreign Key in sqlite3 for python

I have a database called soccer.db with two tables team and game I used DB Browser to create the database. My sqlite3 version is 3.30.0. I also confirmed that t

opencv.imshow will cause jupyter notebook crash

I check other question on google or stackoverflow, they are talking about run cv2.imshow in script, but my code run in jupyter notebook. Here is my configurati

Alternative to Qgrid for displaying "pretty" dataframes in notebooks

I wanted to use some library to have better display of pandas dataframe in notebooks (ie allow sorting of columns, filters etc). Qgrid seemed like a good-enough