jupyter-notebook

Jupyterhub cannot start server - 500 error

不问归期 提交于 2019-12-12 04:10:39
问题 I am trying to run jupyter hub for multiuser mode. I installed jupyterhub from PIP. [root@ip-of-machine hadoop]# echo $PATH /usr/local/bin/jupyterhub-singleuser:/usr/local/bin/jupyterhub:/sbin:/bin:/usr/sbin:/usr/bin:/opt/aws/bin When I tun jupyterhub I get an error saying 500 : Internal Server Error Failed to start your server. Please contact admin. I ran it as [root@ip-of-machine hadoop]# /usr/local/bin/jupyterhub -f ./jupyterhub/jupyterhub_config.py --no-ssl The logs contain [I 2016-05-03

spyder/juypter not working after downgrading python

旧街凉风 提交于 2019-12-12 04:10:28
问题 I had to download my python version from 3.5 to 3.4 because one of the packages I needed wasn't supported in 3.5. I downgraded the python version using the conda command prompt, and everything worked fine - got my package to install with all its dependencies and no conflicts. But now when I try to open Juypter notebook or Spyder, nothing happens. My IPython works just fine. I'm thinking maybe i have to downgrade Juypter and Spyder, but I'm not sure. Anyone have any ideas? 回答1: After a day of

Scroll windows for code in iPython (Jupyter) Notebooks?

早过忘川 提交于 2019-12-12 04:06:05
问题 Is there a way to display large blocks of code in an iPython notebook in a scroll window? I have a notebook where the focus is on graphical output of the code and comments in the markdown text. I want to be able to execute the code in the notebook and have it available to the reader, but many of the code blocks are very lengthy. A scroll window would make a notebook much cleaner and more concise, allowing readers the option of moving past large code blocks. 回答1: The best way so far is to use

Caffe install getting ImportError: DLL load failed: The specified module could not be found

≡放荡痞女 提交于 2019-12-12 04:06:00
问题 I am trying to compile and run the snippets posted here, which basically is going to let me visualize the network internals(feature maps). I have successfully compiled caffe and pycaffe using the caffe-windows branch, And I have copied the caffe folder, into T:\Anaconda\Lib\site-packages folder. Yet still, when I try to run this snippet of code in jupyter notebook : import numpy as np import matplotlib.pyplot as plt %matplotlib inline # Make sure that caffe is on the python path: caffe_root =

Error in Converting iPython Notebook file to PDF

家住魔仙堡 提交于 2019-12-12 03:44:50
问题 I am using linux and trying to convert .ipynb file to .pdf by following instructions from here but I am getting following error ipython nbconvert notebook_file.ipynb --to latex --post PDF but I am getting following error [NbConvertApp] Using existing profile dir: u'/home/user/.ipython/profile_default' Traceback (most recent call last): File "/usr/bin/ipython", line 5, in <module> start_ipython() File "/usr/lib/python2.7/dist-packages/IPython/__init__.py", line 120, in start_ipython return

Why can't I import OpenCV (cv2) in IPython notebook?

自古美人都是妖i 提交于 2019-12-12 02:39:39
问题 Whenever I run import cv2 in an IPython notebook cell, I get an error screen with the message Kernel Restarting The kernel appears to have died. It will restart automatically. Then another dialog stating python quit unexpectedly. Does this mean I cannot run OpenCV in IPython? I cannot seem to find the solution to this anywhere by googling. Is there a solution to this problem? Platform: Mac OSX:10.9, IPython 4.0.3, Python 2.7.9 回答1: The slight variant of the solution to this post solved my

How to setup Plotly two horizontal subplots containing heatmaps so that they don't share a colorscale?

荒凉一梦 提交于 2019-12-12 02:18:26
问题 I have two heatmaps. Their values are in totally different scale, so should not share a colorscale. I tried to create a plotly figure w/ two subplots (arranged horizontally) and put each of my heatmaps into one of the subplot. However, the two heatmap shares the same colorscale to the right of the heatmap on the right. The colorscale show two sets of labels overlapped w/ each other. What I'd like to see is that there are two colorscales, one to the right of each heatmap. My code is below.

How to run a new Jupyter Notebook file that's not part of a pre-built docker image in docker?

感情迁移 提交于 2019-12-12 01:45:10
问题 I am new to Docker. In order to take the Udacity Deep Learning course, I had to set up TensorFlow on my Windows machine using Docker. (Although TensorFlow is now available on Windows, it only supports Python 3.5, however the Udacity course material requires Python 2.7. Therefore, I have to stick with the Docker way of using TensorFlow.) To work on the assignments, I followed the instructions here as detailed below: First, I installed docker toolbox. Then, I launch Docker using the Docker

Import .py flie into Jupyter Notebook line by line

白昼怎懂夜的黑 提交于 2019-12-12 01:15:30
问题 I prefer to write my python code on VSCode because of its intellisense and autocomplete features. But I would rather see and debug the code on a Jupyter notebook to better visualize the data I am working with. I know I can load any file into Jupyter by using the magical %load or %loadpy commands. But they load the entire file into a single cell. Since I wanted to see the intermediary results of certain operations, I would like to import the file in such a way that each line on the file is

how can I match all the key value pair in python which running too long

早过忘川 提交于 2019-12-11 19:54:50
问题 User-item affinity and recommendations : I am creating a table which suggests "customers who bought this item also bought algorithm " Input dataset productId userId Prod1 a Prod1 b Prod1 c Prod1 d prod2 b prod2 c prod2 a prod2 b prod3 c prod3 a prod3 d prod3 c prod4 a prod4 b prod4 d prod4 a prod5 d prod5 a Output required Product1 Product2 score Prod1 prod3 Prod1 prod4 Prod1 prod5 prod2 Prod1 prod2 prod3 prod2 prod4 prod2 prod5 prod3 Prod1 prod3 prod2 Using code : #Get list of unique items