Category "jupyter-notebook"

RuntimeWarning: unknown response content type 'text/html' returning raw response

I tried to use apache jena fuseki in my python code so I found this: https://sparqlwrapper.readthedocs.io/en/latest/main.html I followed the first example and h

using python variables with bash magic in jupyter

I would like to run bash commands in jupyter notebook using the %%bash magic command and pass python variables. As described in this post I can do this as follo

Getting an R Notebook to work in Jetbrains Dataspell

So I am just starting a data science/stats class and I am trying to setup a R notebook within Dataspell I am able to create a Jupyter notbook but it only wants

Jupyter Hub generate automatic logs

It is possible to generate automatic log for each new Jupyter notebook file that is created? The time, user, cell command and the output of the cell command sho

How to suppress unwanted Plot figure object information in Jupyter Notebook

I want to suppress any text output when I run Jupyter Notebook cell. Specifically I output some figures and each is accompanied by something like: <Figure s

jupyter command not found in terminal MacOS

For some reason, when I pip3 everything, it goes all under this PATH /Users/XXX/Library/Python/3.8/bin same for my notebook. So I opened my vscode and go to .z

Randomness between Jupyter Kernel Restarts

Problem: I am currently working on clustering of data and found a weird behavior in my Jupyter Notebooks. All seeds are fixed. Executing some or all code multip

I'm having an issue with Greek letters in Jupyter Markdown. Ideas on a fix?

I am doing some work in Jupyter Notebook which necessitates Greek letters. (\mu, \sigma, etc.). In code cells the \mu followed by TAB works fine. In a markdow

Running nltk.download in Azure Synapse notebook ValueError: I/O operation on closed file

I'm experimenting with NLTK in an Azure Synapse notebook. When I try and run nltk.download('stopwords') I get the following error: ValueError: I/O operation on

Jupyter notebook looses connection

I am fairly new to working with python, so I am sorry if this is a naive question. I have set up a jupyter notebook that I start through the windows terminal. I

Open JupyterNotebook from VScode into the Browser

I have opened my .ipynb file with vscode (Python 3.9 Interpreter - installed jupyterlab), it's connected locally, how can I open it through the browser? what is

Getting a value Error : how to use string data type in model.fit for jupyter using DecisionTreeClassifier?

this is the code import pandas as pd from sklearn.tree import DecisionTreeClassifier dataset = pd.read_csv("emotion.csv") X = dataset.drop(columns = ["mood"]) y

New conda environments no longer being recognised in Jupyter Notebook

Whenever I have previously run Jupyter notebooks from within an activated conda environment, the environment is available within Jupyter. However, now when I do

How to add title when I use xarray to plot

I use 'xarray' to read nc file and plot a figure. I achieved the figure, but I don't know how to modify the title of the figure. Please see the code below. impo

Random password generator with words limit

I am creating a random password generator. I wanted to create an input field where the length of the password can only be min 8 and max 16. If user input the le

Enable showing Line Number in jupyter lab by default

We can enable/disable showing LineNumbers in each code block from "View" tab in Jupyter Lab. But this has to be done every time I open new instance of Jupyter-l

Downloading files in Jupyter: wget on Windows?

I am trying to download files from a url. I found wget command to be able to do that. Since I use Jupyter, I did not want to use pip, however conda install con

Open AI Gym with Neat Algorithm not working on Jupyter

import multiprocessing import os import pickle import numpy as np import neat import gym runs_per_net = 2 # Use the NN network phenotype and the discrete actu

How to get the data from POST request (API) in Python from sothebys site

I hope you are doing well. I have post request from which I want to get data in my jupyter notebook. I used the POSTMAN to check the data. Its working fine in t

Deploying Huggingface model for inference - pytorch-scatter issues

It's my first time with SageMaker, and I'm having issues when trying to execute this script I took from this Huggingface model (deploy tab) from sagemaker.huggi