jupyter-notebook

Access to Jupyter notebook from outside - How to allow google colab to access a local host Jupyter notebook?

半腔热情 提交于 2021-02-11 14:57:39
问题 I am trying to connect from google colab to local host - it does not work, google troubleshooting advise suggests that I should allow local Jupyter notebook to accept colab requests - how to do it ? Screenshot from local host which confirms that requests from colab are forbidden. There should be some config modification to allow such requests, is not it ? Advise from colab: 来源: https://stackoverflow.com/questions/62103546/access-to-jupyter-notebook-from-outside-how-to-allow-google-colab-to

Run Jupyter notebook in an anaconda environment on Windows 10

十年热恋 提交于 2021-02-11 14:40:42
问题 I recently create a anaconda env by: conda create -n tensorflow_env python=3.6 conda activate tensorflow_env conda install -c conda-forge tensorflow Then I install jupyter notebook in the tensorflow_env, conda install jupyter Then I run it with jupyter notebook I got a blank website: Anyone knows what's going on here? I use windows 10. And the jupyter notebook works fine if I don't run it with in the tensorflow_env environment. But if I don't run the jupyter in that environment, I can't

The python used by Jupyter and local machine are in different place

≡放荡痞女 提交于 2021-02-11 14:14:31
问题 I am new to Jupyter, and I found I can not import module on it. I found the answer said because the Python my Jupyter using is different from the Python my local machine using. This is the output when I run sys.executable on Jupyter: import sys sys.executable '/usr/local/Cellar/jupyterlab/1.2.4/libexec/bin/python3.7' This is the output on my local machine's terminal import sys >>> sys.executable '/System/Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS

Is it possible to add a custom shortcut in Jupyter Notebook?

末鹿安然 提交于 2021-02-11 12:35:53
问题 I would like to add a markdown cell in Jupyter Notebook using a shortcut, since adding a new cell and changing it to Markdown cell takes so much steps and feels painstaking at times. But it seems that there is no such shortcut; so now I'm searching for a way, if any, to add a custom shortcut in Jupyter Notebook. Is it possible to define a custom shortcut? 回答1: Jupyter has a way to customize keyboard shortcuts. However, I'm not sure if what you're asking is available. I don't find it that

Jupyter Notebook says that my disk quota is being exceeded, but I have plenty of space in my home directory

强颜欢笑 提交于 2021-02-11 12:31:37
问题 I am trying to run my Jupyter Notebook, but soon after running all the cells, I get the following error. Unexpected error while saving file <notebook path> [Errno 122] disk quota exceeded The thing is though, I have plenty of space available, so I don't know how I could have exceeded my disk space. I've looked elsewhere, and somebody said to delete the following file: ~/.ipython/profile_default/history.sqlite I did that, but I still encounter the same issue. Are there temp files somewhere

Using R with Jupyter notebook installation

╄→尐↘猪︶ㄣ 提交于 2021-02-10 22:40:12
问题 I have installed R from the official site and want to use it from jupyter notebook and jupyterlab. For that i have installed IRkernal in R using: install.packages('IRkernel') and then when I type IRkernel::installspec(user = FALSE) to make this installation visible globally, I get following error: Error in IRkernel::installspec(user = FALSE) : jupyter-client has to be installed but “jupyter kernelspec --version” exited with code 127. In addition: Warning message: In system2("jupyter", c(

Jupyter Notebook - Attribute Error: 'module' object has no attribute 'F_OK'

杀马特。学长 韩版系。学妹 提交于 2021-02-10 20:39:38
问题 Whenever I type in the command "jupyter notebook" it is giving me the attribute error listed above. I am running it through the Anaconda Prompt. What is in the prompt window: (base) C:\Users\jj891w>jupyter notebook Traceback (most recent call last): File "C:\Users\jj891w\AppData\Local\Continuum\anaconda2\Scripts\jupyter-notebo ok-script.py", line 10, in <module> sys.exit(main()) File "C:\Users\jj891w\AppData\Local\Continuum\anaconda2\lib\site-packages\jupy ter_core\application.py", line 266,

multiprocessing vs threading in jupyter notebook

大城市里の小女人 提交于 2021-02-10 20:23:24
问题 I trying to test the example at here changing it from threading to multiprocessing. Running this (the original example) in jupyter notebook, will display a progress bar that fills up in some time. import threading from IPython.display import display import ipywidgets as widgets import time progress = widgets.FloatProgress(value=0.0, min=0.0, max=1.0) def work(progress): total = 100 for i in range(total): time.sleep(0.2) progress.value = float(i+1)/total thread = threading.Thread(target=work,

multiprocessing vs threading in jupyter notebook

≯℡__Kan透↙ 提交于 2021-02-10 20:22:54
问题 I trying to test the example at here changing it from threading to multiprocessing. Running this (the original example) in jupyter notebook, will display a progress bar that fills up in some time. import threading from IPython.display import display import ipywidgets as widgets import time progress = widgets.FloatProgress(value=0.0, min=0.0, max=1.0) def work(progress): total = 100 for i in range(total): time.sleep(0.2) progress.value = float(i+1)/total thread = threading.Thread(target=work,

Where/how does Jupyter notebook hook into python's repr/str

ぐ巨炮叔叔 提交于 2021-02-10 18:36:28
问题 [In jupyter notebook: python3 kernel] If I make a data-frame in pandas or a matrix in sympy it prints very nicely ie it looks quite like a spreadsheet/matrix etc How does it do it? Who does it? The data-frame does not seem to have anything special (eg generating html) in the str/repr methods. Tried in ordinary python and jupyter. Jupyter's printing is much more sophisticated. So where how does it hook in? 回答1: I can only speak for pandas but I imagine sympy works in a similar way. Pandas