Category "jupyter-notebook"

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

Module not appearing in jupyter

I'm having issues with importing my modules into jupyter. I did the following: Create virtual env Activate it (everything below is in the context of my venv) i

How to prevent Git from commiting Jupyter Notebook results?

I m working on project in Jupyter Notebook. Whenever I make a commit not only changed code and markdown columns get commited but also results from code columns

error loading jupyter notebook permission denied: ipynb

I was working in a jupyter notebook until it froze. It wouldn't save or shut down so I restarted my computer. I launched jupyter notebook from an anaconda promp

Embed widgets with jupyter-cadquery (threejs): wrong position on load

I am using jupyter-cadquery to visualize some 3D models made with CadQuery. When visualizing the models on a Jupyter notebook, everything works as expected. B

Is it possible to PASTE image into Jupyter Notebook?

It is possible to include images in Jupyter notebook with various markup. But is it possible to AUTOMATE this? I.e. I have image in clipboard, then I just pres

Jupyter Notebook didn't save for over a day. How can I recover lost work?

I've lost a day's work in Jupyter Notebook because it didn't autosave. As I was working, I would click on File > Save and Checkpoint to be safe. I closed the

PyTorch Lightning training console output is weird

When training a PyTorch Lightning model in a Jupyter Notebook, the console log output is awkward: Epoch 0: 100%|███████

VS Code Jupyter Notebook Graphs Display Transparently

I've recently downloaded VSCode and used it with Python and am having problems with the transparency of Matplotlib plots. As you can see the, the figure elemen

Google cloud dataproc cluster created with an environment.yaml with a jupyter resource but environment not available as a jupyter kernel

I have created a new dataproc cluster with a specific environment.yaml. Here is the command that I have used to create that cluster: gcloud dataproc clusters cr