jupyter-notebook

Could not install pyzmq using apt,pip,pip3,easy_install etc any command

徘徊边缘 提交于 2019-12-05 22:38:03
I tried everything but pyzmq package is not installing. It stops while trying wheel. I even reinstalled wheel but no result. I have already installed all basic prereq stuff. I even installed clang and go-lang but nothing works it even shows same error while installing Jupiter notebook too. You need to install the dev version of the libcrypt package in Termux: apt install libcrypt-dev This version of the package includes the required crypt.h header file. Trying it out I dug out an old alarm clock/Android tablet I had lying around in order to test this out. I followed the instructions I found in

Error with embed_notebook, getting plotly to work on Jupyter

自闭症网瘾萝莉.ら 提交于 2019-12-05 20:36:05
I am trying to have embedded R plotly charts in Jupyter I am following https://plot.ly/r/using-r-in-jupyter-notebooks/ But stuck at "Make sure that both pandoc.exe and pandoc-citeproc are available in your local python installation folder (or Jupyter environment if you have setup a separate environment)." I found the pandoc.exe and pandoc-citeproc. But not sure on where to copy those files. Based on the Anaconda Prompt my environment is C:\Users\myname\AppData\Local\Continuum\Anaconda2\ But even after copying the files there I still get the error of: "Error in embed_notebook(gg): x must be a

Different font settings for editing code and markdown cells in the Jupyter Notebook

让人想犯罪 __ 提交于 2019-12-05 20:18:41
In the Jupyter notebook, I would like to use the regular Ubuntu font when editing markdown cells and UbuntuMono for code cells. I can change the fonts of both these cell types simultaneously by editing .jupyter/custom/custom.css like so: .CodeMirror pre { font-family: "Ubuntu Mono", monospace; font-size: 14pt; } I can also change the formatting of the headers in the markdown code cells: .cm-header { font-size: 110%; font-family: "Ubuntu"; } As well as how the text looks when rendered (after executing a markdown cell): div.text_cell_render { font-family: "Ubuntu"; font-size: 12pt; } However, I

Jupyter Notebook: no module named pandas

有些话、适合烂在心里 提交于 2019-12-05 19:59:30
I've searched through other questions but have not found anything that has helped (most just suggest you do install pandas with conda or pip). In my jupyter notebook I'm trying to import pandas ( import pandas as pd ) but I'm getting the following error: ModuleNotFoundError: No module named 'pandas' Some pertinent information: I'm using python3 I've installed pandas using conda install pandas My conda environment has pandas installed correctly. After activating the environment, I type python into the terminal and from there I can successfully import pandas and use it appropriately. This leads

The kernel appears to have died. It will restart automatically

做~自己de王妃 提交于 2019-12-05 19:17:35
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? Problem solved with: conda update mkl working versions: mkl 2017.0.1 0 mkl-service 1.1.2 py35_2 来源: https://stackoverflow.com/questions/42912076/the-kernel-appears-to-have-died-it-will-restart-automatically

ImportError: No module named numpy - Google Cloud Dataproc when using Jupyter Notebook

ぃ、小莉子 提交于 2019-12-05 19:12:30
When starting Jupyter Notebook on Google Dataproc, importing modules fails. I have tried to install the modules using different commands. Some examples: import os os.sytem("sudo apt-get install python-numpy") os.system("sudo pip install numpy") #after having installed pip os.system("sudo pip install python-numpy") #after having installed pip import numpy None of the above examples work and return an import error: enter image description here When using command line I am able to install modules, but still the import error remains. I guess I am installing modules in a wrong location. Any

Not able to serve jupyter notebooks in binder

泪湿孤枕 提交于 2019-12-05 19:11:57
Binder project looks promising. It helps in executing notebooks in a github repository by building an executable container. I am trying to build an executable container in binder with the following Dockerfile that has Perl 6 and Python 3 kernels: FROM sumdoc/perl-6 ENV NB_USER jovyan ENV NB_UID 1000 ENV HOME /home/${NB_USER} RUN adduser --disabled-password \ --gecos "Default user" \ --uid ${NB_UID} \ ${NB_USER} RUN apt-get update \ && apt-get install -y build-essential \ git wget libzmq3-dev ca-certificates python3-pip \ && rm -rf /var/lib/apt/lists/* && pip3 install jupyter notebook --no

Execute algorithm step by step in Jupyter

牧云@^-^@ 提交于 2019-12-05 18:47:38
I am trying to show the execution of a Python program in Jupyter, step by step. For example, I can visualize the value of a variable in a program as in the following toy program: from IPython.display import display, clear_output from time import sleep def sum_first_integers(n): res = 0 for i in range(n+1): res += i clear_output(wait=True) display(res) sleep(.5) return res This shows the value of res at each step of the algorithm, and I added a sleep(.5) to be able to actually view the execution of the algorithm. My question is whether there exists a better way of performing this visualization:

iPython- Is there a way to answer “y” to (or ignore) all y/n prompts?

丶灬走出姿态 提交于 2019-12-05 18:35:04
So I have an ipython notebook that has a lot of large variables, and at one point I want to get rid of all the ones I'm done with. I'm using %reset_selective variablename to clear each one, but there's 60 of these variables and when I run the block that has all 60 prompts, it asks me to enter y/n for every clear. "Once deleted, variables cannot be recovered. Proceed (y/[n])?" Is there a way I can answer "y" for all of them at once, or to skip the prompt altogether? Reading from here : %reset_selective [-f] regex No action is taken if regex is not included Options -f : force reset without

how does jupyter notebook handle calls to quit()?

人盡茶涼 提交于 2019-12-05 18:27:38
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 unrelated point though. 来源: https://stackoverflow.com/questions/44076562/how-does-jupyter-notebook-handle