jupyter

Get current jupyter-lab notebook name [for Jupyter-lab version 2.1 and 3.0.1 and notebook version >6.0.3)

半城伤御伤魂 提交于 2021-02-19 06:14:43
问题 Problem Hi all, As my title suggested it, I would like to get access to the notebook name (in jupyter-lab ) as a variable. So I could reuse it in the notebook itself (for example to name some figure files generated in the notebook). I saw that a similar issue was opened years ago [see here]. However I didnt find a satisfactory answer. I like the simplicity of the answer suggested by @bill: import ipyparams currentNotebook = ipyparams.notebook_name However, it doesn't work for me. I got this

bash script to run jupyter notebook in virtualenv

人走茶凉 提交于 2021-02-19 04:19:20
问题 To speed up launching projects I created a small bash script which does the following: takes an argument (project name) moves to the directory of that project starts a virtual environment starts a jupyter notebook #!/bin/bash if [ "$1" == "k3" ]; then project_path="tau-code/k3-analysis/" fi codepath="/media/peter/somedrive/code" full_path="$codepath/$project_path" # Go to directory of project cd $full_path # Start environment & notebook if available pipenv shell jupyter notebook --ip=0.0.0.0

Serving an Iframe in Google Colab Notebook: localhost refused to connect

核能气质少年 提交于 2021-02-19 04:19:16
问题 I am trying to serve some HTML from a Google Colab notebook using the following: from IPython.display import IFrame IFrame(src='./output/index.html', width=700, height=600) However, this throws localhost refused to connect : Does anyone know how I can serve the html in index.html (which must load javascript) inside the Colab notebook? Any pointers would be hugely appreciated! 回答1: You can serve content from the path /nbextensions/ which maps to /usr/local/share/jupyter/nbextensions . So you

bash script to run jupyter notebook in virtualenv

一世执手 提交于 2021-02-19 04:18:25
问题 To speed up launching projects I created a small bash script which does the following: takes an argument (project name) moves to the directory of that project starts a virtual environment starts a jupyter notebook #!/bin/bash if [ "$1" == "k3" ]; then project_path="tau-code/k3-analysis/" fi codepath="/media/peter/somedrive/code" full_path="$codepath/$project_path" # Go to directory of project cd $full_path # Start environment & notebook if available pipenv shell jupyter notebook --ip=0.0.0.0

Jupyter widget does not appear in notebook

与世无争的帅哥 提交于 2021-02-19 01:20:51
问题 I'm running a jupyter notebook but the jupyter widgets does not appear. Instead I receive the folllowing message: Failed to display Jupyter Widget of type Button. If you're reading this message in the Jupyter Notebook or JupyterLab Notebook, it may mean that the widgets JavaScript is still loading. If this message persists, it likely means that the widgets JavaScript library is either not installed or not enabled. See the Jupyter Widgets Documentation for setup instructions. If you're reading

Jupyter widget does not appear in notebook

喜夏-厌秋 提交于 2021-02-19 01:20:33
问题 I'm running a jupyter notebook but the jupyter widgets does not appear. Instead I receive the folllowing message: Failed to display Jupyter Widget of type Button. If you're reading this message in the Jupyter Notebook or JupyterLab Notebook, it may mean that the widgets JavaScript is still loading. If this message persists, it likely means that the widgets JavaScript library is either not installed or not enabled. See the Jupyter Widgets Documentation for setup instructions. If you're reading

Vim bindings for jupyter notebook/lab like Colab

半城伤御伤魂 提交于 2021-02-18 17:34:49
问题 Is there some way to have vim bindings in jupyter notebook/lab like in colab. In the included vim bindings for jupyter Lab, there isn't a NORMAL mode for editing inside the cell block. Colab however has better bindings as it allows use inside the cell block. 来源: https://stackoverflow.com/questions/59746583/vim-bindings-for-jupyter-notebook-lab-like-colab

CreateProcessW failed error:2 ssh_askpass: posix_spawn: No such file or directory Host key verification failed, jupyter notebook on remote server

有些话、适合烂在心里 提交于 2021-02-18 12:05:41
问题 So I was following a tutorial to connect to my jupyter notebook which is running on my remote server so that I can access it on my local windows machine. These were the steps that I followed. On my remote server : jupyter notebook --no-browser --port=8889 Then on my local machine ssh -N -f -L localhost:8888:localhost:8889 *******@**********.de.bosch.com But I am getting an error CreateProcessW failed error:2 ssh_askpass: posix_spawn: No such file or directory Host key verification failed. How

CreateProcessW failed error:2 ssh_askpass: posix_spawn: No such file or directory Host key verification failed, jupyter notebook on remote server

亡梦爱人 提交于 2021-02-18 12:04:30
问题 So I was following a tutorial to connect to my jupyter notebook which is running on my remote server so that I can access it on my local windows machine. These were the steps that I followed. On my remote server : jupyter notebook --no-browser --port=8889 Then on my local machine ssh -N -f -L localhost:8888:localhost:8889 *******@**********.de.bosch.com But I am getting an error CreateProcessW failed error:2 ssh_askpass: posix_spawn: No such file or directory Host key verification failed. How

Latex macros in Jupyter (iPython) notebook not rendered by github

前提是你 提交于 2021-02-18 03:17:49
问题 I have a markdown cell in a Jupyter notebook (.ipynb) with the following content. $\newcommand{\paren}[1]{\left(#1\right)}$ $\paren{\beta^2}$ The file is in a Github repository. The LaTex macro application is not rendered by Github. Here is how it looks: The markdown cell, however, is rendered properly when I open is locally as a Jupyter notebook. Is there a way to make this work? Note that the file is in a private Github repo, so I can not use nbviewer. 来源: https://stackoverflow.com