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
4
votes
1answer
86 views

What is the difference between “Python interactive” and “Python 3” kernels

When creating a new notebook using the web interface, Jupyter gives me two options: 'Python Interactive' and 'Python 3' (see screenshot). However, I've been unable to find any indication on what the ...
0
votes
0answers
16 views

Save latex equation in Jupyter as image

I have a latex equation in my Jupiter notebook. \begin{equation*} s_{(x,n)} = 2 ^ {-\frac{E(h(x))}{c(n)}} \end{equation*} Can I save the equation as an image? ...
1
vote
0answers
21 views

Multi Class Perceptron [closed]

I'm trying to implement multiclass perceptron in R. ...
9
votes
6answers
3k 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 ...
0
votes
1answer
19 views

Split a string and create a news columns with parents

let's say I have this dataframe, and I would like to split it into several after (.) and have it like that, with levels, help please Thanks!!
1
vote
1answer
99 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 ...
1
vote
1answer
22 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 (...
18
votes
9answers
75k 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 ...
1
vote
1answer
28 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: ...
0
votes
0answers
8 views

Preparing L2 norm kernel to be use in SVR

I have a pandas DataFrame and I want to use SVR with one of DataFrame's columns ("Age"). In this SVR model, I want to use the L2 norm. To do this, I created a custom kernel function called ...
11
votes
4answers
6k 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 ...
0
votes
2answers
407 views

DataFrame.dtypes error when training model using xgboost

I am getting a DataFrame.dtypes error while following the last steps of this tutorial. Here is my code: ...
1
vote
1answer
45 views

PCA - what do I do with its results?

I have a data set with more than 20 features, and I applied PCA: ...
0
votes
1answer
18 views

Creating bar plot with frequency distribution based

I have a dataframe with this kind of structure: ...
0
votes
1answer
32 views

Changing the default scale of a plot to a “custom scale”

I am trying to change the scale of the x_axis for a plot. The default is generating divisions of 20 units (0-20-40-60-80-100-120). I tried changing to log, but then I get 0-10-100, which helps ...
0
votes
1answer
44 views

AttributeError: 'DataFrame' object has no attribute 'as_matrix' is the error [closed]

AttributeError: 'DataFrame' object has no attribute 'as_matrix' is the error
0
votes
0answers
7 views

EMR Notebook Code completion and suggestion not working

I am using Notebook of AWS EMR, and I noticed that the code autocompletion is not working, I wonder if there is any way to enable it?
1
vote
1answer
119 views

How to add column name

I have a dataset in which some columns have header but the other ones don't have. Therefore, I want to add column name only to those who doesn't have column name. I know how to add column names using ...
0
votes
0answers
33 views

np.loadtxt function showing error, could not convert string to float

This is my data file : I am trying to read this file with loadtxt() and the geometry points get loaded into one NumPy array, so I separate the data into two arrays:...
0
votes
0answers
21 views

Using rbf_kernel with two 2D numpy arrays causes Python 3 kernel to die

I am trying to calculate the maximum mean discrepancy between two datasets, X, Y, where the entries of X, Y are of type ...
1
vote
1answer
100 views

Jupyter Notebook - Change HTTP Headers

I am using jupyter notebook to host my machine learning codes and notebooks. Jupyter Notebook server is sending some HTTP headers like Server = TornadoServer/5.1.1 I want to remove this header. Also ...
4
votes
3answers
915 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: ...
1
vote
2answers
219 views

Attribute error when loading pickle file in python jupyter notebook

I have created a config file with the following code for an object detection task and saved in the local disk. ...
0
votes
0answers
11 views

Is there any way to stop a jupyter cell mid-training and not lose the weights trained till that point?

My Deep Learning Network has been running quite some time now and has not reached halfway through its total epochs and nowhere near to the conditions to invoke the callback. However, I would like to ...
1
vote
1answer
43 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
1answer
217 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 ...
0
votes
0answers
95 views

Jupyter Notebook stuck on loading without giving any output

I've recently trained a model which has achieved 99% accuracy on training and 96% on validation data. It is a model which uses images to successfully distinguishes between 120 classes of fruits. I've ...
2
votes
1answer
415 views

No module named “” error when loading the pickle file

I created a model and I saved it in a pickle file using the Algorithm SVR(Support Vector Regression) ...
0
votes
2answers
121 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:
2
votes
1answer
2k 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-...
2
votes
2answers
84 views

how to see decision tree when running in anaconda?

In Jupyter displaying the DT is done as follows: # Display in jupyter notebook from IPython.display import Image Image(filename = 'tree.png') How to see DT ...
9
votes
2answers
7k 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 ...
0
votes
0answers
7 views

%%capture explanation

I tried to search functionality of this magic function this is what I have found python doc, but I could not understand when and why we need it. could anyone please explain this magic line and give an ...
2
votes
1answer
785 views

Practical way to convert jupyter notebook to MS Word document?

What would be a practical way to convert a Jupyter Notebook to a Word document (.doc) ? I am asking this in a professional context, so I'd like to avoid manual solutions, do it in an efficient way (...
3
votes
1answer
343 views

How to properly store a list of pandas dataframes, so that I can import them in a new python script?

I'm trying to make a GUI in PyQt5 to present the results of my research. The results are around 800 pandas dataframes, stored in lists (so that I can call them individually according to the list index)...
3
votes
1answer
262 views

Reading file from Object Storage in IBM DSX

I'm just getting started with DSX. I have two files in my Object Storage that I want to read in my Jupyter notebook: Warehousing-data.json Warehousing-sales_data- nominal_scenario.json I have the ...
1
vote
1answer
168 views

Graph isn't an attribute in TensorFlow? Very basic question

Hi am am just starting to learn how to use TensorFlow and this is one of my first projects. I am simply trying to create a graph. This is my code: ...
2
votes
1answer
44 views

Importing .ipnyb file from Kaggle into local Jupyter

Total beginner question here, please let me know if it would be more appropriate somewhere else. I just created my first iPython notebook in Kaggle and I downloaded the ipnyb file. Now I have ...
0
votes
1answer
28 views

Why is the code provided in this book mostly commented out?

I am new to text mining and have been playing around with the code provided in the book Applied Text Analysis With Python. I came to a problem with this specific part: https://github.com/foxbook/atap/...
0
votes
0answers
15 views

Jupyter notebook memory consumption while training vs script

Anyone seeing this issue where, when you're training a model with torch on Jupyter Notebook your GPU memory utilization is more than if it was a python script? Ran the same notebook through a script ...
0
votes
1answer
338 views

Upload 'tsv' file to Google Colab / Jupyter Notebook

TSV(Tab separated Value) extension file can't be uploaded to google colab using pandas Used this to upload my file ...
2
votes
1answer
28 views

5 digit number mis-reads analysis

Nothing to do with number recognition in the classical 'hand-written' sense Disclaimer above to avoid this being counted as a repeat. I have a selection of 96 serial numbers, and a separate ...
1
vote
1answer
61 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 ...
4
votes
1answer
125 views

How to display graph with MathJax in jupyter notebook?

I am trying to create a jupyter-notebook with a graphical depiction of a neural network. For starters, I am trying to display a simple network that evaluates a boolean NOT operator. I am using the <...
0
votes
1answer
4k views

np.loadtxt function showing error, could not convert string to float: '“Date”'

This is my stock market csv data: ...
0
votes
0answers
9 views

play session from ratings dataset in Movie20 M

I need to extract listening sessions from the ratings dataset which has the columns cols = [userId movieId rating timestamp] timestamp is just a number for eg 1112486027 listening sessions are ...
0
votes
0answers
74 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 ...
1
vote
0answers
26 views

Integrate SageMaker notebook instances into development flow

I often get stuck by the calculation time when I work on a model locally. Even sampling quite heavily sometimes still let the running times very long. Ideally, these times must be of the order of the ...
0
votes
0answers
51 views

Jupyter notebook pyspark error in %manage_spark

The environment is Jupyterhub on Centos using Pyspark kernel. When trying to run the below commands in JupyterLab I get errors. But the same commands work fine if I revert to regular Jupyter notebook ...