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
3 votes
1 answer
5k views

Jupyterlab Inline Interactive plot

I am trying to make my inline plots in jupyterlab interactive. So far, I have tried a suggestion as pointed out here, among others: https://stackoverflow.com/questions/50149562/jupyterlab-interactive-...
N.M's user avatar
  • 181
1 vote
0 answers
155 views

Error-analysis and evaluation of a model using Python?

My method of evaluating a model is the following : Split the training data set and do cross validation to obtain an accuracy of my model on my cross validation data set. Use the parameters that gave ...
Blenz's user avatar
  • 2,044
4 votes
3 answers
4k views

Pandas Groupby makes kernel die in Jupyter notebook/Python

I have a groupby in jupyter-notebook that takes ages to run and after 10 minutes of running it says 'kernel died...', The groupby looks like this: ...
BlueIvy's user avatar
  • 67
4 votes
1 answer
826 views

How to reload cell in jupyter notebook? After OSError: [Errno 12] Cannot allocate memory

I got an error: OSError: [Errno 12] Cannot allocate memory I deleted some files. And I have free memory. I don't want start learning again from first epoch. (I got ...
Badum's user avatar
  • 141
0 votes
1 answer
256 views

Azure Data Studio opens Jupyter Notebook / Lab HTML

When I start Jupyter Lab or Notebook from the terminal, Azure Data Studio opens the auto-redirect HTML file instead of Firefox. Is there a way to correct this behavior? I'm experiencing this issue ...
KT12's user avatar
  • 230
1 vote
1 answer
43 views

Can I continue a machine learning process after shutdown?

I use Mask RCNN for object detection and instance segmentation. I am new to neural networks, this is my first project. I use jupyter notebook. Can I continue learning after shutdown? I would like ...
Badum's user avatar
  • 141
-1 votes
1 answer
656 views

Percentage stacked bar chart - error = “TypeError: only size-1 arrays can be converted to Python scalars” - why x & y values are not recognized? [closed]

...
pf_man's user avatar
  • 33
4 votes
3 answers
5k views

What is the lightest browser to launch a jupyter notebook?

Currently I am using Firefox as default browser, I have no issue to naviguate with it, but I have a little limited memory (8GB, 6.8 available) and Firefox takes a lot of RAM for nothing big, the more ...
AvyWam's user avatar
  • 213
3 votes
1 answer
699 views

Error with Jupyter Notebook and Google Cloud

so I integrated my google cloud with the Jupyter Notebook and it seemed to be working as follows: [I 12:13:51.633 NotebookApp] Serving notebooks from local directory: /home/kerenb1 [I 12:13:51.633 ...
Keren's user avatar
  • 81
1 vote
1 answer
339 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 ...
Keren's user avatar
  • 81
1 vote
1 answer
100 views

How to place multiple graphs in same coordinate system (pandas,mathplotlib) -> look pic [closed]

in short how to set graphs in same coordinate system, not separated as in pic each in its own coordinate system in one frame....
pf_man's user avatar
  • 33
1 vote
1 answer
94 views

Arguments in python fast.ai function that are not in the function definition?

I have been coming across function calls that use arguments that are not in the function definition. I would like to know how that works (i.e. how the compiler interprets this). For example, this ...
user637140's user avatar
2 votes
1 answer
1k views

Change priority of cell execution in jupyter notebook?

I am sometimes in the following situation: I want to execute two cells: Cell 1 takes on the order of 10 minutes or hours. Cell 2 will take 1 second. I'd rather execute cell 2 first and see the result,...
user637140's user avatar
2 votes
1 answer
2k views

gpu pytorch code way slower than cpu code?

I have the following pytorch code in a jupyter notebook: import torch t_cpu = torch.rand(500,500,500) %timeit t_cpu @ t_cpu Which outputs: ...
user637140's user avatar
1 vote
0 answers
253 views

open jupyter notebook file in linux from folder system [closed]

I have .ipynb files stored locally on my computer. The way I currently open these is by opening the terminal, typing "jupyter notebook" then navigating through jupyter notebook's file system to my ....
user637140's user avatar
3 votes
1 answer
385 views

Better code completion in python notebooks

How come python code suggestion is awful in notebooks and spyder? Smetimes it shows classes methods and variables, sometimes not
3nomis's user avatar
  • 531
1 vote
1 answer
407 views

requesting password while git push in jupyter notebook

I am trying to push the commited changes from kaggle kernels using jupyter notebook but while pushing the changes git asking me for username and I really don't know how to give username as it seems ...
rhoitjadhav's user avatar
2 votes
1 answer
523 views

Tools for visualisation: making a video of a sliding windows moving on the time series

I have a Neural Network (an autoencoder) that gets as the input a time-window of length M from a time series of length N, (...
Mo-'s user avatar
  • 1,225
1 vote
0 answers
176 views

Problem upgrading pip command in Azure Jupyter notebook [duplicate]

Trying to install CNTK, I received a message saying that I should upgrade pip command here This one is another question related to the upgrading of pip. After the installation with the command ...
Hermes Morales's user avatar
1 vote
2 answers
184 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:
Hermes Morales's user avatar
-1 votes
1 answer
512 views

Installed module pysubgroup not found in Jupyter Notebook [closed]

I'm trying to use the pysubgroup python package referenced here. I think I properly installed it as shown below, with no errors when I installed it: ...
Jazzmine's user avatar
  • 101
12 votes
2 answers
27k views

Conda Verification Failed

I was trying to install jupyter package for anaconda in my current environment but constantly getting the following error. Preparing transaction: done Verifying transaction: failed ...
Desmond's user avatar
  • 287
0 votes
1 answer
30 views

I am getting a Type Error in this Line

Diff = [i - j for i,j in zip(text_features, author_signature)] Diff is a List , text_features = [1, 2, 3] , author_signature = [3, 2, 1]
Mano's user avatar
  • 5
1 vote
1 answer
239 views

Can I make kaggle kernels read directly from my computer?

For some reason jupyter notebooks never work the same as kaggle kernels for me. I want to use kaggle kernels but the downside is I don't know how to make it read from a file on the computer like a ...
user61116's user avatar
1 vote
1 answer
7k views

Jupyter notebook running very slow

I am running a RandomForestClassifier on my data but my jupyter notebook is very slow. It took almost 2 hours to run the below code: ...
TigSh's user avatar
  • 243
25 votes
10 answers
135k views

GraphViz not working when imported inside PydotPlus (`GraphViz's executables not found`)

I've been trying to make these packages work for quite some time now but with no success. Basically the error is: GraphViz's Executables not found EDIT: I had ...
Philippe Fanaro's user avatar
7 votes
4 answers
49k 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 ...
Ethan's user avatar
  • 1,605
1 vote
1 answer
890 views

TensorFlow: how to print out all elements in a tensor

I have a tensor that is of the size (19,19,5,80). I want to print out all the elements in it but if I use print(XXX.eval()), ...
TingTing's user avatar
11 votes
5 answers
5k views

Share Jupyter Notebook with a non programmer

I would like to share a Jupyter Notebook with somebody who is not a programmer (via a URL). I understand that I must publish my work to GitHub and then use http://nbviewer.jupyter.org/ to render the ...
Antonio's user avatar
  • 111
1 vote
0 answers
339 views

How to link csv file within a markdown file when using Jupyter Lab?

I would like to render rapid reports using the Markdown files with links to csv files [csv](path to csv file). This part is working, I can dowload the csv file from the markdown preview, but I can't ...
SimonLL's user avatar
  • 11
2 votes
1 answer
753 views

How to plot a 3-axis bar chart with matplotlib (and pandas + jupyter)

I'm a bit confused about how to go about plotting a 3-axis bar chart: So my jupyter notebook reads in an excel/sheet and I have a table: ...
waffl's user avatar
  • 121
3 votes
1 answer
52k views

MemoryError for np.array [closed]

I was trying the Keras CNN Stater Code on Ubuntu 16.04, from the below link: https://www.hackerearth.com/challenge/competitive/deep-learning-3/machine-learning/predict-the-energy-used-612632a9/#...
Nands's user avatar
  • 133
3 votes
0 answers
810 views

Why Tensorflow does NOT quit when CUDA_ERROR_OUT_OF_MEMORY [closed]

It was my understanding that when trying to create a tensorflow session, if the amount of available GPU memory is not enough for what the program asks for, the program should raise an error and exit. ...
user12075's user avatar
  • 2,159
2 votes
2 answers
31 views

Unable to access saved code

I am new to jupyter notebook and i can't find my saved .ipynb code after logging out of jupyter notebook accidentally. Thanks in anticipation
Lolade's user avatar
  • 21
4 votes
1 answer
186 views

Jupyter notebooks and git [closed]

I am looking for any straightforward solution to work with Jupyter Notebooks and git since the cached data on the .ipynb files makes the diff difficult to read. Does anyone know any standalone ...
ballesdbc's user avatar
0 votes
1 answer
198 views

Jupyter notebook - Converted Python dataset to R Dataframe. Got stuck in converting back from R to Python Dataframe

I am able to Install Anaconda and able to write Python and R code without any issues based on below help. https://gist.github.com/simecek/019d87c55fec3839d95bbf8489dde61d I extracted my data from MS-...
Murali's user avatar
  • 263
1 vote
2 answers
300 views

How to extract all information by using id

I need to apply classifier algorithm after clustering. Now after clustering I find the id numbers that which id belongs which cluster. I clustered them into 2 cluster. Now I need to collect those ...
IS2057's user avatar
  • 295
1 vote
0 answers
282 views

Adding custom packages to Jupyter Lab?

Is there a way of making custom Python packages generally available within Jupyter lab? While their documentation suggests to make install-able versions, and going through PIP, this is rather ...
tsttst's user avatar
  • 151
2 votes
4 answers
6k views

Interactive plots in Jupyter

I'm looking for Jupyter extension to plot interactive graphs. For example I need to plot twenty time series lines with order to examine data. Only plugin which I've found is bqplot https://github.com/...
user46673's user avatar
1 vote
1 answer
75 views

How the "def match(self, example)" method is automatically calling and how the example arguments is working here?

...
Taimur Islam's user avatar
4 votes
1 answer
13k views

How to use plot model in keras?

I'm trying to draw the keras model with the plotmodel. Setup: I installed graphviz binaries with: choco install graphviz added path to the bin folder, and then ...
Srihari's user avatar
  • 767
0 votes
1 answer
467 views

Unable to print in Jupyter Notebook using Pandas [closed]

I am doing basic data analysis on an csv file in jupyter notebook def answer_two(): return (df['Gold']-df['Gold.1']).argmax() answer_two The above code ...
Bing's user avatar
  • 111
0 votes
1 answer
6k views

Keras Neural Network training is stuck (gets stuck around epoch 6) [closed]

I have a training dataset with 8000 rows, and I am trying to train a Keras Neural Network on it, using 100 epochs. However, the training process gets stuck around epoch 6 every time, as shown below. I'...
Programmer's user avatar
11 votes
1 answer
34k views

Difference between interpolate() and fillna() in pandas

Since interpolate and fillna method does the same work of filling na values. What is the basic difference between the two. What is the significance of having these two different methods?? Can anyone ...
Debuggerrr's user avatar
1 vote
2 answers
2k views

Unable to immediately continue Jupyer Notebook after closing then reopening the project

When I reopen a project I am working on in the Jupyter Notebook, and trying to add code, the cell restarts at '1' and the only way I can continue to work with my previous objects present is by ...
B R's user avatar
  • 11
2 votes
0 answers
68 views

Team Collaboration using Jupyter Notebooks? [duplicate]

Is there an alternative to JupyterHub that allows sharing of notebooks across team members. We need the following requirements: Be able to run the server on a HPC. Multiple user login. Version ...
gman9732's user avatar
3 votes
1 answer
7k 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: ...
martin-martin's user avatar
10 votes
1 answer
2k views

Avoid reloading DataFrame between different python kernels

Is there a way of keeping a variable (large table / data frame) in memory and share it across multiple ipython notebooks? I'd be looking for something, which is conceptually similar to MATLAB's ...
tsttst's user avatar
  • 151
0 votes
1 answer
317 views

Titanic Disaster

I have been working on the Kaggle tutorial on the Titanic Disaster. Although I get a result which seems good to me (on the training set) the trained model performs bad on the test set. It would be ...
Andrea Sindico's user avatar
1 vote
1 answer
114 views

Neural network accuracy in Torch depends on compute power?

I am new to machine learning and have quite good understanding of basic concepts. I was implementing a 3 Layer neural network on MNIST dataset with 784, 100, 10 neurons in input, hidden, output layer ...
Anuj's user avatar
  • 111