Questions tagged [jupyter]

Jupyter is a collection of environments and protocols for interactive computing. It supports many languages and kernels, and works with frontends including the web application Jupyter Notebook. Jupyter was split from IPython in 2015, and Jupyter Notebook is based on IPython Notebook.

Filter by
Sorted by
Tagged with
0 votes
1 answer
114 views

When using Jupyter (R kernel) and the keras library. When a cell is run there is no output. W/no output, there's no way knowing code functions.?

The keras digit object detection code does actually run in Jupyter using the R kernel. But it took three attempts to recognize that there wasn't an issue with Jupyter, or the R kernel, or the code. ...
1 vote
1 answer
496 views

Site packages location not shared between Python and Jupyter Lab

I appreciate the fact that Jupyter runs in an isolated mode. I read several posts about it by now. What I don't understand is why the JUPYTER_PATH variable is ignored as well as appending manually (...
3 votes
4 answers
108 views

Way to copy paste notebook output table into MS tools

In my work environment I often find myself doing calculations on jupyter notebooks, then want to share the results over a MS word document. So much that I already asked how to convert jupyter ...
1 vote
1 answer
360 views

How to integrate google cloud with dropbox and jupyter notebook using tensorflow

So I opened up a google cloud account and have access to global and local (us east 1) resources (Compute Engine API , NVIDIA K80 GPUs) and connected it to my dropbox. Next, I followed this youtube ...
0 votes
1 answer
321 views

Image is rendered when I run jupyter notebook locally, but the image is not rendered when I see the same jupyter notebook on github

I went on github issues to find solutions from people who has similar issue but none of them worked for me. Can someone please help?
3 votes
1 answer
1k views

How to choose between Tensorflow and Pytorch?

Recently I've been working on a pretty vanilla ANN model in Python with sklearn (and its preprocessing pipeline), mostly in jupyterhub notebooks if that matters. I am considering changing the ...
0 votes
2 answers
5k views

Jupyter, Python: the kernel appears to have died while training a model on a big amount of data

I am training my model on almost 200 000 images, i'm using Jupyter and now after 3 days of training ( i used 800 epochs and batch-size = 600) I have this " the kernel appears to have died. It ...
1 vote
2 answers
202 views

Problem importing CNTK in Azure jupyter notebook

Vineeth Sai indicated in this that with the following code: pip install cntk the problem is solved. However, I am getting the error shown in attached image:
0 votes
1 answer
135 views

Deployment in AzureML for NLP with fastText

I am new to Azure ML. I am working on sentimental analysis on a small tweet dataset with the help of fastText embedding (fastText file 'wiki-news-300d-1M.vec' is around 2.3 GB which I downloaded in my ...
0 votes
1 answer
2k views

Jupyter Notebook not importing pandas module

I am running Jupyter on a server on a virtual environment. I then tunnel my connection so I can access Jupyter on my browser. When I SSH into the server, I can use the Panda module in both Ipython ...
1 vote
2 answers
2k views

Scalling and unscalling of data for SVR prediction

I'm trying to use SVR to predict a certain feature. I create the model with the following code: ...
3 votes
2 answers
2k views

Is it possible to work with AWS Sagemaker Studio Notebooks using a local IDE?

Is it possible to work with AWS Sagemaker Studio Notebooks using an IDE such as VSCode or PyCharm/IntelliJ running on my local machine? And if yes, how? Ideally I'd like to want to connect to the ...
0 votes
1 answer
953 views

gym car racing v0 using DQN

I am currently learning reinforcement learning and wanted to use it on the car racing-v0 environment. I have successfully made it using PPO algorithm and now I want to use a DQN algorithm but when I ...
0 votes
0 answers
50 views

vscode cannot reconnect to existing jupyter notebook server when waking my laptop

I recently switched from browser to vs code for using jupyter notebook and the IDE-like features (e.g. auto-complete, debugging, etc) provided by VS code is really so much better than a browser. But ...
0 votes
1 answer
231 views

Plot multiple catplots from a dataframe

I have a dataframe and I want to plot multiple catplots. I want to use a loop but i do not know how to code one for this. Any examples? ...
1 vote
1 answer
36 views

keep track of all versions of variable values corresponding to a version (commit) of code in jupyter notebook

I am a data analyst and use jupyter notebook for various data explorations. Since I often modify code a lot, one issue I constantly have is lost track of which code version a specific variable ...
0 votes
1 answer
781 views

Training object detection models from the scratch without using pre-trained models and weights

I have a data set of 25 images. I wish to run Faster RCNN or yolov3 object detection models on this images.I want to create my custom trained model and get weights after running say 10 epochs. Later I ...
0 votes
1 answer
4k views

I am getting this error ValueError: not enough values to unpack (expected 4, got 2)

I have written this code: ...
0 votes
1 answer
177 views

Splitting CSV data with missing target variable using train_test_split in Python

I have a dataset in CSV format that consists of a training dataset with around 300 instances and a test dataset with around 100 instances. The issue is that the target variable (the column we want to ...
0 votes
1 answer
1k views

pl.datetime plots as days since epoch or 1970, if formatted - polars and matplotlib

I'm attempting to port some old reports from Pandas to Polars. I am happy with the data, and am now attempting to plot a few time series. This is working, but I'm finding that matplotlib just doesn't ...
0 votes
1 answer
6k views

Reading a json-file from an API, getting "AttributeError: 'Response' object has no attribute 'data' "error

Title says it all. Im trying to read a json file im accessing via an API. But when I try, I get the error: 'AttributeError: 'Response' object has no attribute 'data'...
0 votes
0 answers
26 views

Help with running topology GAN (TopoGAN)

Link: https://github.com/TopoXLab/TopoGAN-ECCV2020 Sorry if this is the wrong place to ask, but I've been looking for help on how to work this out for a long time as I don't have much experience in ...
0 votes
1 answer
371 views

How do I prevent ConfusionMatrixDisplay.from_predictions from showing the plot?

ConfusionMatrixDisplay docs say: It is recommend to use from_estimator or from_predictions ...
0 votes
0 answers
20 views

How do I get ktrain to return a multilabel output in tabular regression?

So the output vector I'm training a ktrain model on is 2 dimensional (the outputs are ['Temp', 'Velo']. And ktrain is even able to compute these when I use predictor.predict (see attached image), but ...
0 votes
2 answers
3k views

Tensorflow gpu not available for jupyter notebook

I am trying to make tensorflow work with gpu support. First I have tensorflow-gpu installed: However, there is no gpu available....
8 votes
3 answers
30k views

How to setup and run Conda on Google Colab

I am interested in using Google Colab for data modeling. How do I install conda, create an environment and run python in a notebook? I did some searching and found some helpful hints, but had several ...
0 votes
1 answer
55 views

Ordering a material science dataset (properties names, properties scalars, formulas)

I'm dealing with a materials science dataset and I'm in the following situation, I have data organized like this: ...
0 votes
0 answers
392 views

ValueError: X has 40 features, but RandomForestRegressor is expecting 32 features as input

...
0 votes
0 answers
258 views

Install package from conda-forge

I am trying to install the TRIQS package from conda-forge. As mentioned here, I used conda install -c conda-forge triqs on ...
0 votes
0 answers
20 views

Running all cells again adding new rows instead of return new dataframe

i am creating a class just like lazypredict library but with k fold support and return a data frame withh the mean score of every model every thing works and i can ...
8 votes
4 answers
51k views

How to download a Jupyter Notebook from GitHub?

This is a fairly basic question. I am working on a data science project inside of a Pandas tutorial. I can access my Jupyter notebooks through my Anaconda installation. The only problem is that the ...
29 votes
10 answers
62k views

Collaborating on Jupyter Notebooks

I have prepared Jupyter Notebook with some findings and I shared it with other team members through GitHub to get their feedback in a written form. It used to work like this when working together on a ...
13 votes
5 answers
22k views

Generate pdf from jupyter notebook without code

I have a Jupyter notebook that contains markdown, code, and outputs (graphs). I would like to generate PDF from this notebook. I tried to hide code using HTML code which I get from here then I tried ...
0 votes
2 answers
40 views

What ML Algo should I use to plot & predict customer location vs. amount spent?

Im using real customer csv files from my ecommerce store. I was initially going to use k cluster with 2 values. I want the two values to be Province Code, and amount spend on my store. This will ...
0 votes
1 answer
107 views

numpy power function output for 2 to the power 63

I am running some test code and observed something strange. the numpy power function giving strange output post 2 to the power 62 ...
0 votes
2 answers
10k views

Creating bar plot with frequency distribution based

I have a dataframe with this kind of structure: ...
0 votes
0 answers
507 views

Problems with implementing LIME

Hope you are holding on tight, Christmas soon! **Updates: I'm only able to get the results in probability but I want it in pure binary (0 or 1). I tried using .predict instead of predict_proba(x_test) ...
0 votes
0 answers
103 views

How to use my resampled data (through SMOTE) for my models?

I'm quite new to Python coding so maybe this is an obvious thing. I am dealing with an imbalanced data set. I have encoded the categorical features and transformed them into numpy.array. After this, I ...
0 votes
1 answer
125 views

How do I Profile a Jupyter Cell and Rank it by Cumulative Time?

I'm using SciKit-Learn's OneHotEncoder to encode some categorical features. However, the time complexity of the function seems to have an exponential dependence on ...
8 votes
3 answers
10k views

Is it possible to (de)activate a specific set of cells in jupyter?

I have a jupyter notebook and I would like to perform several runs, the code I want to run depending on the results of the previous runs. I divided my notebook into several cells, and for each run I ...
3 votes
2 answers
4k views

Add Cell Numbers to Jupyter?

Does anyone know a way to add cell numbers (not line numbers within cells)? I have been using nbextensions for a while but it does not seem to have the ability to label cell numbers.
0 votes
1 answer
5k views

Bar plot not showing up in Jupyter Notebook

I am trying to create a bar plot for a Pandas Series and the bar plot is not showing up in Jupyter notebook. When I run the cell, I only get the following and I do not see the bar plot. ...
0 votes
1 answer
466 views

Colab Pro+ CNN GPU memory saturation

I have a problem when executing jupyter notebook for CNN in colab pro+, to train a model with a size of 560664x48x48x1. normally the data is composed of images with a size of 48x48. I used 10 fold ...
1 vote
1 answer
628 views

Reproduce Keras training results in Jupyter Notebook

I am using keras and Jupyter notebook and want to make my results reproducible every time I ran it. This is the tutorial I used https://machinelearningmastery.com/time-series-prediction-lstm-recurrent-...
1 vote
1 answer
35 views

I want to make a model that minimizes the heat supply, what should I do?

I am a beginner Python user. My weather data is made up of various variables. It consists of three months of one-minute time data, ambient environmental data (sunlight, ambient temperature, wind speed,...
3 votes
1 answer
8k views

How to change plot size in nltk.plot()

I'm following along the NLTK book and would like to change the size of the axes in a lexical dispersion plot: ...
0 votes
1 answer
38 views

How to count words in a dataframe?

I would like to count how many Male and female who answer (ex. Biking / Cycling). Below is the sample data:
-1 votes
1 answer
3k views

AttributeError: 'NoneType' object has no attribute 'landmark'

I am on windows, using jupyter notebook, Mediapipe:Holistic Solution, Python, tensorflow. I am using a Holistic solution and trying to get the left hand, right hand and pose landmarks. I am giving my ...
0 votes
1 answer
581 views

How to retrieve tweets from all cities using Twint package in python?

Using Twint, I'm able to get tweets from each city in the list, but while creating a dataframe I only get tweet from the last city in the list, is it possible to append the tweets based on cities? <...
0 votes
1 answer
43 views

Using large files in a OVHcloud AI notebook

I’m trying to train an artificial intelligence model on OVHCloud AI Notebooks with the Common Voice’s dataset from Mozilla. The problem is that this database has a 70 GB size. I have tried to download ...