jupyter-notebook

How to load CSV file in Jupyter Notebook?

房东的猫 提交于 2020-05-15 02:20:06
问题 I'm new and studying machine learning. I stumble upon a tutorial I found online and I'd like to make the program work so I'll get a better understanding. However, I'm getting problems about loading the CSV File into the Jupyter Notebook. I get this error: File "<ipython-input-2-70e07fb5b537>", line 2 student_data = pd.read_csv("C:\Users\xxxx\Desktop\student-intervention- system\student-data.csv") ^ SyntaxError: (unicode error) 'unicodeescape' codec can't decode bytes in position 2-3:

ssh AWS, Jupyter Notebook not showing up on web browser

一曲冷凌霜 提交于 2020-05-13 05:35:11
问题 I am trying to use ssh connecting to AWS "Deep Learning AMI for Amazon Linux", and everything works fine except Jupyter Notebook. This is what I got: ssh -i ~/.ssh/id_rsa ec2-user@yy.yyy.yyy.yy gave me Last login: Wed Oct 4 18:01:23 2017 from 67-207-109-187.static.wiline.com ============================================================================= __| __|_ ) _| ( / Deep Learning AMI for Amazon Linux ___|\___|___| The README file for the AMI ➜➜➜➜➜➜➜➜➜➜➜➜➜➜➜➜➜➜➜➜ /home/ec2-user/src/README

ssh AWS, Jupyter Notebook not showing up on web browser

血红的双手。 提交于 2020-05-13 05:34:56
问题 I am trying to use ssh connecting to AWS "Deep Learning AMI for Amazon Linux", and everything works fine except Jupyter Notebook. This is what I got: ssh -i ~/.ssh/id_rsa ec2-user@yy.yyy.yyy.yy gave me Last login: Wed Oct 4 18:01:23 2017 from 67-207-109-187.static.wiline.com ============================================================================= __| __|_ ) _| ( / Deep Learning AMI for Amazon Linux ___|\___|___| The README file for the AMI ➜➜➜➜➜➜➜➜➜➜➜➜➜➜➜➜➜➜➜➜ /home/ec2-user/src/README

ssh AWS, Jupyter Notebook not showing up on web browser

被刻印的时光 ゝ 提交于 2020-05-13 05:34:06
问题 I am trying to use ssh connecting to AWS "Deep Learning AMI for Amazon Linux", and everything works fine except Jupyter Notebook. This is what I got: ssh -i ~/.ssh/id_rsa ec2-user@yy.yyy.yyy.yy gave me Last login: Wed Oct 4 18:01:23 2017 from 67-207-109-187.static.wiline.com ============================================================================= __| __|_ ) _| ( / Deep Learning AMI for Amazon Linux ___|\___|___| The README file for the AMI ➜➜➜➜➜➜➜➜➜➜➜➜➜➜➜➜➜➜➜➜ /home/ec2-user/src/README

How to convert the Ipython kernel on kaggle to pdf and download it?

梦想与她 提交于 2020-05-11 07:40:29
问题 I want to download all the simulation with code and respective output in a .pdf file. Is there any way that it can be possible? I'have tried downloading the Ipython notebook and opening it on my PC in jupyter notebook and then converting it to pdf. But I'm searching for the direct way to do it. 回答1: TL;DR As of now, downloading the jupyter notebook and then converting it to PDF is the quickest way. If you still wish to convert the notebook to PDF on kaggle itself, you can do it using command

jupyter server : not started, no kernel in vs code

℡╲_俬逩灬. 提交于 2020-05-11 04:39:05
问题 i am trying to use jupyter notebooks from vs code and installed jupyter notebook extension and i am using (base)conda environment for execution. while this happened Error: Jupyter cannot be started. Error attempting to locate jupyter: at A.startServer (c:\Users\DELL.vscode\extensions\ms-python.python-2020.2.63990\out\client\extension.js:1:784356) at async A.ensureServerAndNotebookImpl (c:\Users\DELL.vscode\extensions\ms-python.python-2020.2.63990\out\client\extension.js:1:783811) at async A

ipywidgets dropdown widgets: what is the onchange event?

安稳与你 提交于 2020-05-11 03:52:46
问题 I can register a handler to button.on_click in ipython notebook widgets, but I don't know how to do the same for a dropdown widget import ipywidgets as widgets from IPython.display import display def on_button_clicked(b): print("Button clicked.") button = widgets.Button(description="Click Me!") display(button) button.on_click(on_button_clicked) But for choose_task = widgets.Dropdown( options=['Addition', 'Multiplication', 'Subtraction'], value='Addition', description='Task:', ) there seems to

Losing jupyter notebook ssh connection kills kernel

岁酱吖の 提交于 2020-05-10 04:33:25
问题 I have an Ipython Jupyter kernel running on in an AWS VPN that I tunnel to a port my laptop where I connect to with a browser. I am finding that the kernel dies whenever I lose the tunnel and I have to run my notebook from the beginning. What is the likely cause of this and how can I prevent it? It is only the notebook kernels that die, the notebook server stays up. 回答1: I admit that this seems odd. I wonder if there is something in the notebook that is killing the kernel. This can happen.

Losing jupyter notebook ssh connection kills kernel

徘徊边缘 提交于 2020-05-10 04:32:06
问题 I have an Ipython Jupyter kernel running on in an AWS VPN that I tunnel to a port my laptop where I connect to with a browser. I am finding that the kernel dies whenever I lose the tunnel and I have to run my notebook from the beginning. What is the likely cause of this and how can I prevent it? It is only the notebook kernels that die, the notebook server stays up. 回答1: I admit that this seems odd. I wonder if there is something in the notebook that is killing the kernel. This can happen.

How to delete a locally uploaded file on google colab?

↘锁芯ラ 提交于 2020-05-10 04:11:36
问题 I'm trying to delete a file that I uploaded on Google colab using the following code: from google.colab import files uploaded = files.upload() How to delete the file now? e.g If the file's name is 'sample.jpg' . 回答1: Try this !rm sample.jpg Then check that it is gone with !ls -al Update (nov 2018) Now you can click to open left pane, browse the files tab, then right click to select and delete a file. 回答2: Answer from @Korakot works for a single file and in case, to delete entire folder or