jupyter-notebook

How to connect to a remote Jupyter notebook server? [closed]

匆匆过客 提交于 2019-12-23 16:58:29
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed last year . I want to run a jupyter notebook server in a machine to which I have ssh access and that I am already able to run notebooks locally. How can I setup the jupyter notebook so it can be accessed remotely ? 回答1: If you have ssh access to the machine that will run the server, follow the next steps: 1) In the machine

Do I need to install Jupyter notebook in every virtual environment?

老子叫甜甜 提交于 2019-12-23 16:44:50
问题 I isolate my data science projects into virtual environments using pipenv . However, running a Jupyter notebok does not access the local environment and uses the default IPyKernel. I've seen that you can register virtual environments from within the environment, but this requires installing the ipykernel package which itself requires Jupyter! Is there anyway to avoid this and just use a single Jupyter install for all virtual environments? 回答1: Generally, you'd install jupyter once and do the

How to get tab space in 'markdown' cell of Jupyter Notebook

老子叫甜甜 提交于 2019-12-23 13:57:11
问题 I am writing descriptive ipynb file and need to give output in markdown with space, but unable to add tab space for printing structured data. 回答1: Type "nbsp" to add a single space. Type "ensp" to add 2 spaces. Type "emsp" to add 4 spaces. Use the non-breaking space (nbsp) 4 times to insert a tab. eg.  This is an example. 回答2: If I understand your question then I don't think this has anything to do with Jupyter cells. For example, are you able to type a tab key into a Stackoverflow question

How to get tab space in 'markdown' cell of Jupyter Notebook

那年仲夏 提交于 2019-12-23 13:57:08
问题 I am writing descriptive ipynb file and need to give output in markdown with space, but unable to add tab space for printing structured data. 回答1: Type "nbsp" to add a single space. Type "ensp" to add 2 spaces. Type "emsp" to add 4 spaces. Use the non-breaking space (nbsp) 4 times to insert a tab. eg.  This is an example. 回答2: If I understand your question then I don't think this has anything to do with Jupyter cells. For example, are you able to type a tab key into a Stackoverflow question

Is it possible to split a Jupyter cell across cells when it contains a function, loop, or other block?

微笑、不失礼 提交于 2019-12-23 12:48:00
问题 Jupyter has a feature in being able to execute one cell at a time. If a cell has a lot of statements it's often possible (desirable) to split it into smaller single statement cells, except when a block is involved,e.g if, for, def, etc. this question was asked earlier in a different way: Execute algorithm step by step in Jupyter and answered What is the right way to debug in iPython notebook? While invoking a debugger may be the best option available, it does seem kludgy, and it likely would

jupyter server dfdata.to_clipboard from remote to local machine. how?

巧了我就是萌 提交于 2019-12-23 10:12:45
问题 I have a dataframe say dfdata in a jupyter server notebook running on a remote machine) . I want to access the dataframe in the remote machine memory to my local machine, say to paste the dfdata to Excel. Normally (when the notebook server is running locally), I do dfdata.to_clipboard() to copy the dataframe to clipboard and now able to paste it to Excel. However, since the dfdata is now on the remote machine, the dfdata.to_clipboard() does not have the copy of the dataframe in clipboard. How

Matplotlib figure not showing up in output widget in first cell of Jupyter notebook

荒凉一梦 提交于 2019-12-23 09:08:02
问题 I have the following snippet in the first cell of a Jupyter notebook: import matplotlib.pyplot as plt import pandas as pd import ipywidgets as widgets import numpy as np out = widgets.Output() data = pd.DataFrame(np.random.normal(size = 50)) plt.ioff() with out: fig, axes = plt.subplots() data.hist(ax = axes) display(fig) plt.ion() display(out) If I restart the kernel and run this first cell, I see this output: <Figure size 640x480 with 1 Axes> However, if I run this first cell a second time,

Jupyter notebook does not print logs to the output cell

安稳与你 提交于 2019-12-23 07:47:27
问题 I am currently using Jupyter notebook and I would like to force it to print out Python logs to the output cell. I am using old notebook that used to work this way, probably in older version of Jupyter notebook. I have logging set as: import logging logging.basicConfig(format='%(levelname)s : %(message)s', level=logging.INFO) logging.root.level = 20 But when I then call: logging.info("hello world") It does not print anything in the output cell. It just prints out the stuff in the console in

Error : 'cat' is not recognized as an internal or external command

偶尔善良 提交于 2019-12-23 06:11:51
问题 Why I keep getting this error in one of my Jupyter Notebook !cat ../data/filename.csv Error: 'cat' is not recognized as an internal or external command, operable program or batch file. anyone, please help. 回答1: Try: !more ../data/filename.csv Or !type ../data/filename.csv 回答2: Install '[Cygwin][1]' to add Linux command in the window. download from this link https://www.cygwin.com. 来源: https://stackoverflow.com/questions/44159645/error-cat-is-not-recognized-as-an-internal-or-external-command

Kernel Error in R Jupyter Notebook due to Anaconda?

梦想的初衷 提交于 2019-12-23 05:02:32
问题 I need to bundle R scripts into some Notebook such as Jupyter Notebook. My OSX setup contains Homebrew, Rstudio and Anaconda. Next I try to get R in Jupyter Notebook working. I am getting the following error FileNotFoundError: [Errno 2] No such file or directory: '/usr/local/Cellar/r/3.3.3_1/R.framework/Resources/bin/R': '/usr/local/Cellar/r/3.3.3_1/R.framework/Resources/bin/R' that shows that paths are somehow messed up. Also, the Jupyter Notebook shows Kernel Error in Red. The path /Users