jupyter-notebook

“Unable to connect to the local runtime” in google colab

自闭症网瘾萝莉.ら 提交于 2020-06-26 11:07:21
问题 I'm trying to connect local run time but it's not connecting, I used the troubleshooting dialog following commands: pip install jupyter_http_over_ws jupyter serverextension enable --py jupyter_http_over_ws jupyter notebook \ --NotebookApp.allow_origin='https://colab.research.google.com --port=8888 \--NotebookApp.port_retries=0 Have tried the same above steps as said in below URL https://research.google.com/colaboratory/local-runtimes.html Facing an issue 'Jupyter authentication cookie was not

ModuleNotFoundError: No module named 'keras' for Jupyter Notebook

落爺英雄遲暮 提交于 2020-06-25 21:39:18
问题 I was running Jupyter Notebook and the following error occurs ModuleNotFoundError Traceback (most recent call last) in ----> from keras.models import Sequential from keras.layers import ( Conv2D, MaxPooling2D, Flatten, Dense, Dropout) ModuleNotFoundError: No module named 'keras' I have tried using import sys; sys.path and found this ['/home/xxx/notebook', '/home/xxx/anaconda3/lib/python37.zip', '/home/xxx/anaconda3/lib/python3.7', '/home/xxx/anaconda3/lib/python3.7/lib-dynload', '', '/home

Plotly sunburst plot not showing in Jupyter notebook

橙三吉。 提交于 2020-06-25 05:40:41
问题 I am using Plotly and Jupyter to generate some visuals to better understand user journeys online. I am using the Plotly sunburst chart since this makes a great visual for that purpose. Plotly provides an example that works great and provides the visual that I am looking to produce with my own data. I have created a dataframe that mirrors the example but when I try to use .show() no chart is produced. It appears to run fine (no errors) and produces white space where the chart should be but not

How to save a file into a directory in Jupyter notebook?

随声附和 提交于 2020-06-24 22:22:13
问题 I invoke "jupyter notebook" under: [abigail@localhost anaconda3]$ jupyter notebook By default, it saves to the directory of anaconda3/ with an extension of "ipynb" when I click "File" => "Save". How to save it to a directory under anaconda3/, instead of the default location? There is not a "save as" command in notebook? 回答1: You can save a notebook to a location of your choice by using the "File" -> "Download as" -> "Notebook (.ipynb)" option from the menu. Alternatively you can start your

How to save a file into a directory in Jupyter notebook?

。_饼干妹妹 提交于 2020-06-24 22:21:49
问题 I invoke "jupyter notebook" under: [abigail@localhost anaconda3]$ jupyter notebook By default, it saves to the directory of anaconda3/ with an extension of "ipynb" when I click "File" => "Save". How to save it to a directory under anaconda3/, instead of the default location? There is not a "save as" command in notebook? 回答1: You can save a notebook to a location of your choice by using the "File" -> "Download as" -> "Notebook (.ipynb)" option from the menu. Alternatively you can start your

Displaying R ggplots inline in jupyter notebooks

依然范特西╮ 提交于 2020-06-24 13:53:49
问题 I am trying to run a simple example found here: https://www.datacamp.com/community/blog/jupyter-notebook-r#gs.OczVCjA import warnings warnings.filterwarnings('ignore') # Load in the r magic import rpy2.ipython %reload_ext rpy2.ipython # We need ggplot2 %R require(ggplot2) %R library("ggplot2") # Load in the pandas library import pandas as pd # Make a pandas DataFrame df = pd.DataFrame({'Alphabet': ['a', 'b', 'c', 'd','e', 'f', 'g', 'h','i'], 'A': [4, 3, 5, 2, 1, 7, 7, 5, 9], 'B': [0, 4, 3, 6,

Displaying R ggplots inline in jupyter notebooks

主宰稳场 提交于 2020-06-24 13:51:19
问题 I am trying to run a simple example found here: https://www.datacamp.com/community/blog/jupyter-notebook-r#gs.OczVCjA import warnings warnings.filterwarnings('ignore') # Load in the r magic import rpy2.ipython %reload_ext rpy2.ipython # We need ggplot2 %R require(ggplot2) %R library("ggplot2") # Load in the pandas library import pandas as pd # Make a pandas DataFrame df = pd.DataFrame({'Alphabet': ['a', 'b', 'c', 'd','e', 'f', 'g', 'h','i'], 'A': [4, 3, 5, 2, 1, 7, 7, 5, 9], 'B': [0, 4, 3, 6,

Using Jupyter with Windows Subsystem for Linux

跟風遠走 提交于 2020-06-24 11:52:31
问题 Using the Ubuntu bash terminal on Windows 10 (installation instructions here), I installed Anaconda and have been using Jupyter notebooks without a problem. Unfortunately, Jupyter is unable to locate a runnable browser from within the subsystem, so I have to copy and paste the link it outputs in the terminal - but that is workable. The main issue comes when I try to open multiple notebooks. Normally, Jupyter would detect that a port ( 8888 by default) is already being used and make a new one,

Keras Model.fit Verbose Formatting

ぃ、小莉子 提交于 2020-06-24 06:52:13
问题 I'm running Keras model.fit() in Jupyter notebook, and the output is very messy if verbose is set to 1: Train on 6400 samples, validate on 800 samples Epoch 1/200 2080/6400 [========>.....................] - ETA: 39s - loss: 0.4383 - acc: 0.79 - ETA: 34s - loss: 0.3585 - acc: 0.84 - ETA: 33s - loss: 0.3712 - acc: 0.84 - ETA: 34s - loss: 0.3716 - acc: 0.84 - ETA: 33s - loss: 0.3675 - acc: 0.84 - ETA: 33s - loss: 0.3650 - acc: 0.84 - ETA: 34s - loss: 0.3759 - acc: 0.83 - ETA: 34s - loss: 0.3933

How to fix tqdm progress_apply for pandas in Jupyter?

ε祈祈猫儿з 提交于 2020-06-22 08:46:28
问题 Don't really understand is it a mistake or just my local problem, still have some issues with using tqdm progress bars with progress_apply in Jupyter. First try: from tqdm import tqdm tqdm_notebook.pandas(desc="Example Desc") keywords_df['keyword'] = keywords_df['keywird'].progress_apply(lambda x: x.replace('*','')) Output (without any bars) : AttributeError: 'function' object has no attribute 'pandas' Second try: from tqdm import tqdm tqdm_notebook().pandas(desc="Example Desc") keywords_df[