Category "jupyter-notebook"

How to get colored legend with seaborn barplot

There is a problem with plt.legend in seaborn and matplotlib. What is wrong with it? I can't see the legend color. plt.figure(figsize=(30,10)) plt.xticks(rotati

Import geoviews in Anaconda

I am trying to install the geoviews module. I installed it successfully but when I am trying to import it in my code I have this message: No module named 'chann

Plotly Table does not show in Jupyter Lab in Python?

I try to plot table in Plotly in Python in Jupyter Lab. But my table in plotly does not show in Jupyter Lab, my code is as below: df = pd.read_csv('df.csv') fi

Seaborn kdeplot works in local - gives error in amazon sagemaker

I am running the following straightforward code: sns.kdeplot(data=subset_data['VaribleA'],fill=True, color = "#FF0000" , linewidth=1, bw_method = 0.25) When I

How to use a function and its derivative('s) to solve another differential equation in python?

I need to solve this two equations simultaneously in python : "b" is constant; but I don't know how to put the function "P" and its derivative at same time in

Python Jupyter Notebook: Embed an interactive plot in the _repr_html_() method of a class

I am trying to embed an interactive graph in the _repr_html_() method of a class C. What I have tried so far does not seem to be working in my Jupyter Notebook.

Running jupyter notebook cells as an interactive SLURM job on VScode

I am doing some analyses using vscode on a remote server that has got SLURM installed to manage jobs and provide parallel computing. I would like to run each ce

Is there a WebSocket command to execute the code blocks in a SageMaker notebook instance once there is a successful connection?

I have written a Lambda Function to start a SageMaker notebook instance, create a WebSocket connection, then execute the ipynb file inside the notebook instance

ipynb files opening in JSONformat in VSCODE

I am trying to open ipynb files in VSCODE in Ubuntu. But the files are not opening as notebook editor. Instead it is showing as raw json format. can you please

How to reduce the space between the lines in Jupyter Visual Studio Code Output?

I want to reduce the space between the lines when I print something in Jupyter visual studio code output. Current output I would like an output like Jupyter wh

Getting a 400 Response Spotify API Python

I am trying to use requests.get with the Spotify API and I can't figure out why I keep getting a 400 response. I am working in an .ipynb file in Jupyter Lab run

Importing DICOM image path (using MacBook, google collab) but getting [Errno 2] No such file or directory

I'm having trouble reading the file path that contains a DICOM image. I'm familiar with retrieving a file path on Windows and reading it but I'm currently using

jupyter notebook resource management in vscode

I have some .ipynb file and open these files in vscode but my vscode taking a lot of resources so i should reopen my vscode again and again.

Python subprocess line 1420 FileNotFoundError: [WinError 2] The system cannot find the file specified. Jupyter-Matlab notebook

I want to use Jupyter-matlab notebooks. I've downloaded Anaconda navigator and followed the steps from this web: http://jmlilly.net/jupyter-matlab Unfortunately

Type error for a column that exists within the dataframe I am trying to call

Essentially, I am getting a key error in my jupyter notebook when trying to merge two data frames. As I understand it, a key error will only occur if said colum

Importing cantera (package) in google colab not working

I am not able to solve the following problem: For my research I would like to use a Google Colab notebook to perform my data analysis. To this end I need a pack

jupyter contrib nbextension install gives Jupyter command `jupyter-contrib` not found

Trying to (re)install Jupyter's nbextension via the following steps in terminal pip install jupyter_contrib_nbextensions jupyter contrib nbextension install --u

Hello!, there is a package I need to download

exempi is a package for Linux and I am a Windows user, until now no windows releases have been made but I need it, so my Question is can I install it on windows

import in jupyter notebook to use a method from another file

I am using jupyter notebook. I have 3 jupyter source files written in python in a folder in the same directory: parser, preprocess, and temp. I am trying to imp

Jupyter : [WinError 267] The directory name is invalid

I got the error while running a code: [WinError 267] The directory name is invalid: 'E:\\PlantVillage/Pepper__bell___Bacterial_spot/0022d6b7-d47c-4ee2-ae9a-392a