jupyter-notebook

Is it possible to install bioconductor package 'rain' in R Jupyter notebook?

左心房为你撑大大i 提交于 2019-12-08 00:51:58
问题 I want to install the bioconductor rain package for R in Jupyter notebook. I am not able to install this package in Jupyter notebook following instructions given on the website linked above - in an R Jupiter notebook: source("https://bioconductor.org/biocLite.R") biocLite("rain") I get the following error: Warning message: In install.packages(pkgs = doing, lib = lib, ...): installation of package ‘gmp’ had non-zero exit statusWarning message: In install.packages(pkgs = doing, lib = lib, ...):

Plot generated from R library is not showing in R Jupyter notebook

醉酒当歌 提交于 2019-12-08 00:33:18
问题 I am using the SensoMineR package coltable function to generate a heatmap like plot of sensory data I've analyzed. The problem I'm facing is that while executing this function in the R terminal will display the figure, executing this function in the R Jupyter notebook does not display the figure. The figure is not showing in Jupyter. The documentation I've linked above contains example code which easily emulates plot generation. Apart from my own analysis code, this example code also does not

AttributeError: module 'boto' has no attribute 'plugin'

我只是一个虾纸丫 提交于 2019-12-07 23:57:56
问题 I'm running a VM on Google Cloud Platform using Jupyter notebook with word2vec models. I have the following code snippet: from gensim.models import Word2Vec amazon_word2vec = Word2Vec(model, min_count=1, size=100) And it results in the error: AttributeError: module 'boto' has no attribute 'plugin' What is the solution to the above problem? 回答1: pip install google-compute-engine install google compute engine and restart your vm and it works fine. 来源: https://stackoverflow.com/questions

Tweepy: tweepy.error.tweeperror 'code' 215 'message' 'bad authentication data.'

六月ゝ 毕业季﹏ 提交于 2019-12-07 23:17:25
I'm unsure what is going wrong in here. The following code was working until 2 days ago. I'm using tweepy version number 3.6.0 on python3 in jupyter notebook . Now, when I execute the code given below, I keep getting the error, TweepError: [{'code': 215, 'message': 'Bad Authentication data.'}] . What am I doing wrong? I've already looked at similar posts 1 , 2 , 3 , 4 , 5 and 6 but no solution. Note, I have also regenerated the keys, still the error persists. The code is; import tweepy ckey = 'xxx' csecret = 'xxx' atoken = 'xxx' asecret = 'xxx' # OAuth process, using the keys and tokens auth =

Tweepy: tweepy.error.tweeperror 'code' 215 'message' 'bad authentication data.'

不问归期 提交于 2019-12-07 23:16:39
I'm unsure what is going wrong in here. The following code was working until 2 days ago. I'm using tweepy version number 3.6.0 on python3 in jupyter notebook . Now, when I execute the code given below, I keep getting the error, TweepError: [{'code': 215, 'message': 'Bad Authentication data.'}] . What am I doing wrong? I've already looked at similar posts 1 , 2 , 3 , 4 , 5 and 6 but no solution. Note, I have also regenerated the keys, still the error persists. The code is; import tweepy ckey = 'xxx' csecret = 'xxx' atoken = 'xxx' asecret = 'xxx' # OAuth process, using the keys and tokens auth =

How to use Jupyter notebooks in a conda environment?

本秂侑毒 提交于 2019-12-07 22:27:51
问题 Typically one runs jupyter notebook or jupyter-notebook or ipython notebook in a terminal to start a Jupyter notebook webserver locally (and open the URL in the browser). When using conda and conda environments, what is the best way to run a Jupyter notebook which allows to import Python modules installed in the conda environment? As it seems, this is not quite straight forward and many users have similar troubles. Most common error message seems to be: after installing a package XYZ in a

vagrant and ubunutu: pip install jupyter error: Storing debug log for failure in /home/vagrant/.pip/pip.log

99封情书 提交于 2019-12-07 19:29:56
问题 I want to install jupyter on ubuntu 14.04(vagrant) with the command: sudo pip install jupyter, but there is error, could you tell me how to solve it. vagrant@vagrant-ubuntu-trusty-64:~$ pip install jupyter Downloading/unpacking jupyter Downloading jupyter-1.0.0-py2.py3-none-any.whl Downloading/unpacking ipywidgets (from jupyter) Downloading ipywidgets-6.0.0-py2.py3-none-any.whl (46kB): 46kB downloaded Cleaning up... Exception: Traceback (most recent call last): File "/usr/lib/python2.7/dist

Jupyter notebook failing to connect to kernel

痞子三分冷 提交于 2019-12-07 18:48:40
问题 I'm attempting to use Python 3 kernel (checked it's in kernelspec list). I create a notebook, and in the first cell print("test") . When I execute the cell, nothing happens. I just see In[*] . It never seems to execute. Eventually I get: Connection failed A connection to the notebook server could not be established. The notebook will continue trying to reconnect. Check your network connection or notebook server configuration. It's the only notebook running. I can see Juptyer is still running

The kernel appears to have died. It will restart automatically

时光毁灭记忆、已成空白 提交于 2019-12-07 18:24:28
问题 When running: from skimage import data in jupyter notebook I always get the error : "The kernel appears to have died. It will restart automatically" I use: Anaconda 4.2.0 (64-bit) Python 3.5.2 scikit-image 0.12.3 np111py35_1 When I run a notebook with python 2.7 kernel it goes fine with no error. So I guess there is a compatibility issue? But I need to use python 3.5, any suggestion? 回答1: Problem solved with: conda update mkl working versions: mkl 2017.0.1 0 mkl-service 1.1.2 py35_2 来源: https

how does jupyter notebook handle calls to quit()?

我们两清 提交于 2019-12-07 17:55:35
问题 I have discovered a very odd behavior of Jupyter Notebook: In [1]: print("hello") quit() print("world") Out [1]: hello world The kernel does actually die afterward (I get a popup, "The kernel appears to have died. It will restart automatically."), but not before printing both. Why does it work this way? Perhaps this has something to do with Jupyter's architecture that I don't know about. Incidentally there is not actually an "Out[1]:" prefix, it just shows the output. That's probably an