jupyter-notebook

Jupyter command `jupyter-lab` not found

拈花ヽ惹草 提交于 2019-12-11 03:25:49
问题 I have tried to install jupyter lab on my Kubuntu machine. If I install jupyter lab with 'pip3 install jupyter jupyterlab' the command 'jupyter notebook' works completly fine. But if I try to run 'jupyter lab' every time I get the message: Traceback (most recent call last): File "/usr/local/bin/jupyter", line 11, in <module> sys.exit(main()) File "/usr/local/lib/python3.6/dist-packages/jupyter_core/command.py", line 230, in main command = _jupyter_abspath(subcommand) File "/usr/local/lib

Widget to control multiple cells for Jupyter Dashboard

夙愿已清 提交于 2019-12-11 03:22:46
问题 I'm trying to build a jupyter dashboard which is going to contains many plots and tables. Ideally, all the plots and table will change accordingly to the same widget value at the same time. I can create a function that will handle the creation of all plot and tables and show them, but then I'll be limiting the layout which is what jupyter dashboard is great for. def create_dashboard(x, y, z): # make first plot using x ... # make second plot using x, y ... # draw table from dataframe using x,

Jupyter password and Docker

随声附和 提交于 2019-12-11 03:06:42
问题 For changing / setting the password of a Jupyter server, I follow the instructions here: http://jupyter-notebook.readthedocs.io/en/latest/public_server.html#preparing-a-hashed-password I do this in my local ipython environment. One thing to note is that somehow I get different hashes every time I re-run the passwd() command for the same password, but I assume that's intended behavior. Anyway. I get the hash, and then I have a line like this in a Dockerfile: ENV PW_HASH="u'sha1:salt:hash'" and

Scipy cannot be imported in Jupyter Notebook

↘锁芯ラ 提交于 2019-12-11 02:48:52
问题 I'm trying to use scipy in a jupyter notebook and it says I have it installed, but when I try to import it, it gives me the following error. Any help would be great. thank you. 回答1: TLDR: try this import sys !{sys.executable} -m pip install scipy A bit more info: Jupyter notebooks are able to work with multiple kernels , which are essentially pointers to the Python (or other language) executable that the notebook uses. In a Python kernel, you can figure out which one is being used by typing

homebrew pip install jupyter error: ImportError: Entry point ('console_scripts', 'pip2') not found

*爱你&永不变心* 提交于 2019-12-11 02:48:08
问题 The end goal is to get jupyter notebook working on Mac OSX. Due to some conflicts with mac system python, I went the homebrew route: brew install python After homebrew is done installing python (and pip2) export PATH=/usr/local/bin:/usr/local/sbin:$PATH is added to ~/.zshrc source ~/.zshrc Now running pip or pip2 gives the following error: pip2 install jupyter Traceback (most recent call last): File "/usr/local/bin/pip2", line 11, in <module> load_entry_point('pip==9.0.1', 'console_scripts',

jupyter notebook keeps CONNECTING TO KERNEL

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-11 02:44:27
问题 The Jupyter notebook keeps saying Connecting to kernel , which never reaches finally popping an error, 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. So the asterisk on the command line stays forever. The strange part is, iPython on terminal works FINE. Here are what I tried: Change the browser from Chrome to Firefox Change port number into something else than '8888'

'Jupyter' is not recognized as an internal or external command

老子叫甜甜 提交于 2019-12-11 02:25:52
问题 I installed python and jupyter notebook through the Anaconda distribution. I have been successfully using jupyter notebook for weeks and it has run perfectly fine. However, I can only launch a notebook through the Anaconda Navigator GUI. When I try to run the command (in command prompt) to start a notebook it says 'jupyter' is not recognized as an internal or external command This is also the same case with Python 'python' is not recognized as an internal or external command I am using

Pandas Dataframe: Replace charactere conditionally

▼魔方 西西 提交于 2019-12-11 02:06:20
问题 I have a dataframe with a column named "Size". This column have some values containing the size of an android applications list. Size 8.7M 68M 2M I need to replace these values to: Size: 8700000 68000000 ... I thought about a function that verifies if there is a dot at the string '.'. If it exists, change the M value to five zero's (00000). If not, change the M value to six zero's (000000). Could you guys help me with it? 回答1: General solution for replace by multiple units: #dict for replace

Can Jupyter run a separate R notebook from within a Python notebook?

ぐ巨炮叔叔 提交于 2019-12-11 02:04:52
问题 I have a Jupyter notebook (python3) which is a batch job -- it runs three separate python3 notebooks using %run . I want to invoke a fourth Jupyter R-kernel notebook from my batch. Is there a way to execute an external R notebook from a Python notebook in Jupyter / iPython? Current setup: run_all.ipynb : (python3 kernel) %run '1_py3.ipynb' %run '2_py3.ipynb' %run '3_py3.ipynb' %run '4_R.ipynb' The three python3 notebooks run correctly. The R notebook runs correctly when opened separately in

Is it possible to add another value to the plotly plot without the axis?

倖福魔咒の 提交于 2019-12-11 02:04:41
问题 I have a requirement, where I need to plot a plotly graph with two axes x and y . Is it possible to add another parameter to that graph (say z ) without plotting it in the graph? For example, if water boils at 100 o C at time 5 AM, I want to plot time in X and degrees at Y and the word 'Water' to be added when hovering over that point. UPDATE: In the below image, there are two points of a dataframe being shown when hovered about that point, now I want to know if its possible to add another