jupyter-notebook

Jupyter Shortcut not working

与世无争的帅哥 提交于 2020-01-22 13:44:09
问题 I am working my code on Jupyter(Python). Normally, the shortcut to insert cell below is 'b' and for above is 'a', but when I do that search bar opens instead of insertion of cell. 回答1: I had this issue and it turned out that my Chrome plugin (Vimium) was intercepting keypresses before Jupyter could capture them. In my case, I just added a rule to the plugin to disable it on my common notebook urls, like localhost:8888 . 回答2: Your issue is probably because of your browser settings. b must be

Jupyter Shortcut not working

吃可爱长大的小学妹 提交于 2020-01-22 13:43:23
问题 I am working my code on Jupyter(Python). Normally, the shortcut to insert cell below is 'b' and for above is 'a', but when I do that search bar opens instead of insertion of cell. 回答1: I had this issue and it turned out that my Chrome plugin (Vimium) was intercepting keypresses before Jupyter could capture them. In my case, I just added a rule to the plugin to disable it on my common notebook urls, like localhost:8888 . 回答2: Your issue is probably because of your browser settings. b must be

Jupyter Shortcut not working

久未见 提交于 2020-01-22 13:43:06
问题 I am working my code on Jupyter(Python). Normally, the shortcut to insert cell below is 'b' and for above is 'a', but when I do that search bar opens instead of insertion of cell. 回答1: I had this issue and it turned out that my Chrome plugin (Vimium) was intercepting keypresses before Jupyter could capture them. In my case, I just added a rule to the plugin to disable it on my common notebook urls, like localhost:8888 . 回答2: Your issue is probably because of your browser settings. b must be

Pycharm jupyter notebook wsl: Jupyter package is not installed

a 夏天 提交于 2020-01-22 11:57:05
问题 I would like to use Jupyter notebook inside Pycharm. The project interpreter is a python2.7 from a virtual environment inside WSL (ubuntu 18.04). The Jupiter package is correctly installed inside the virtual environment (I can run it by jupyter notebook ). My problem is that when I want to use Jupyter notebook inside Pycharm, I get the following error: Run Error Jupyter package is not installed (see picture). Any idea what's going on here? 回答1: I had this problem in Python 3. Below are the

Is it possible to copy a cell from one jupyter notebook to another?

Deadly 提交于 2020-01-22 04:47:18
问题 I am trying to copy cells from one jupyter notebook to another. How this is possible? 回答1: This feature has been introduced in Jupyter Notebook 5.0. Use pip install notebook --upgrade to upgrade to the latest release. Note that the old shortcuts C , V and X work only for copying and pasting inside one notebook. In order to do it across tabs, you should use Ctrl-C and Ctrl-V ( Cmd-C and Cmd-V on Mac). 回答2: With jupyter 5.0.0, copy paste of one or many cells from one notebook to another works

Clear output widget using onclick Button event - Python

我的未来我决定 提交于 2020-01-22 02:21:12
问题 I am working on a Jupyter Notebook in which I am using a button created with ipywidgets to display a df when clicking on it. For this I am using the following code: import ipywidgets as widgets import numpy as np vartest = 0 Button = widgets.Button(description='Search', disabled=False, button_style='info', tooltip='Search') display(Button) def whenclick2(b): global df if vartest==0: df = pd.DataFrame(np.arange(5)) class displayDF(object): def _create_widgets(self): self.button = Button self

How do I plot a Bar graph when comparing the rows? [duplicate]

霸气de小男生 提交于 2020-01-21 12:22:09
问题 This question already has answers here : Function to create grouped bar plot (1 answer) Annotate bars with values on Pandas bar plots (2 answers) Closed 7 months ago . I am having trouble in plotting a bar graph on this Dataset. +------+------------+--------+ | Year | Discipline | Takers | +------+------------+--------+ | 2010 | BSCS | 213 | | 2010 | BSIS | 612 | | 2010 | BSIT | 796 | | 2011 | BSCS | 567 | | 2011 | BSIS | 768 | | 2011 | BSIT | 504 | | 2012 | BSCS | 549 | | 2012 | BSIS | 595 |

How do I define custom magics in jupyter?

ぃ、小莉子 提交于 2020-01-21 09:27:17
问题 I'm using Ubuntu 14.04 LTS with an Anaconda python installation: Python 3.5.1 :: Anaconda 2.4.1 (64-bit) I'm trying to use this recipe to enable C++ interactive compiling in my ipython notebooks: import IPython.core.magic as ipym @ipym.magics_class class CppMagics(ipym.Magics): @ipym.cell_magic def cpp(self, line, cell=None): """Compile, execute C++ code, and return the standard output.""" # Define the source and executable filenames. source_filename = 'temp.cpp' program_filename = 'temp.exe'

Kernel error (Errno 13 Permission denied) in Jupyter Notebook, Windows 10

江枫思渺然 提交于 2020-01-20 06:18:30
问题 I have installed Jupyter Notebook on Windows 10. I can execute jupyter notebook command. It opens and shows a list of current path directories. I also can create or open a notebook. But when I do it I get Kernel error in the top right corner. After clicking on it this window appears: Failed to start the kernel Unhandled error Traceback (most recent call last): File "c:\users\lola\appdata\local\programs\python\python35\lib\site-packages\tornado\web.py", line 1699, in _execute result = await

Kernel error (Errno 13 Permission denied) in Jupyter Notebook, Windows 10

情到浓时终转凉″ 提交于 2020-01-20 06:17:54
问题 I have installed Jupyter Notebook on Windows 10. I can execute jupyter notebook command. It opens and shows a list of current path directories. I also can create or open a notebook. But when I do it I get Kernel error in the top right corner. After clicking on it this window appears: Failed to start the kernel Unhandled error Traceback (most recent call last): File "c:\users\lola\appdata\local\programs\python\python35\lib\site-packages\tornado\web.py", line 1699, in _execute result = await