ipython-notebook

Where is ipython notebook hiding?

一曲冷凌霜 提交于 2019-12-13 19:30:59
问题 I have not used ipython-notebook in a while and I think I'm doing something wonky. When I launch it (with ipython notebook ) I get a web interface that lets me edit files in the browser: but the menus are all MIA there's no way to run anything or add new cells. I suspect that I'm missing something very simple and obvious, here. What am I doing wrong? 回答1: You'll need to create a new notebook. Navigate back to http://localhost:8888/tree , browse to the folder where you want to create it, and

IPython Notebook - python3 not found after uninstalling Anaconda3 for Anaconda

三世轮回 提交于 2019-12-13 18:59:27
问题 I uninstalled Anaconda 2.3 with Python 3.4.3 and then installed the same Anaconda version with Python 2.7.10. When I open a notebook via $ ipython notebook "Example Notebook.ipynb" it tries to use the python3 kernel as opposed to opening with the installed python2. Of course I get the error python3 kernel not found . How can I get ipython notebooks to open with the python2 kernel? I've tried to uninstall ipython and ipython notebook, then delete .ipython and .jupyter from my user directory in

Unable to use bigrquery with standard sql

依然范特西╮ 提交于 2019-12-13 16:23:53
问题 I'm working in an R ipython notebook (relative R newbie) and trying to extract data from Google Big Query using 'bigrquery'. I'm told this should be simple, but extracting using standard sql isn't working. Here's my code: require("bigrquery") # Use your project ID here project <- "project-id" # put your project ID here standard_sql <- "SELECT year, month, day, weight_pounds FROM `publicdata.samples.natality` LIMIT 5" legacy_sql <- "SELECT year, month, day, weight_pounds FROM [publicdata

How can i import OpenGL in anaconda python?

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-13 15:12:15
问题 I use ipython notebook on anaconda python but i have no idea how to install or import opengl. Can anyone help me solve this ? I use anaconda on linux xubuntu. Sorry for bad english. 回答1: As pointed out by David, Vispy provides OpenGL bindings for OpenGL ES 2.0. More interesting about vispy is vispy.gloo which provides a much easier (object oriented) way to use OpenGL. If you need full desktop OpenGL functionality (not limited to ES 2.0), you need PyOpenGL. I think that currently it is

How do I provide inline input to an IPython (notebook) shell command?

和自甴很熟 提交于 2019-12-13 14:01:39
问题 I want to put together an IPython notebook with some shell commands and their input. In the bash prompt I can use "here-document" syntax: bash-3.2$ mysql -u root <<END_IPUT > use mydb; > show tables; > END_INPUT How do I get the same effect in IPython, and specifically in a jupyter notebook? I know how to execute shell commands as IPython as "line magics" or "cell magics", e.g.: In [7]: !! ls -tF Out[7]: ['Demo-notebook.ipynb', 'createdb.sql', ... I've looked at IPython as a system shell,

Can I autosave a running jupyter python notebook without having it open in a browser tab?

可紊 提交于 2019-12-13 11:59:07
问题 So I have a long-running python notebook. As long as it's open in my browser's tab, it's autosaving every 2 minutes, and life is good. Is it possible to keep it auto-saving even if I close the browser tab? The kernel already keeps running when I close the tab, which is great. This is kind of like "screen", but in jupyter EDIT: Even if I leave the tab open in my browser, I noticed that after 24 hours, the "kernel status" in the top right becomes "disconnected", even though the running cell

supress messages from ipython notebook engine

和自甴很熟 提交于 2019-12-13 06:01:27
问题 I usually start the ipython notebook engine and put it in the background. But whenever users open/close notebooks or timeouts happen, I see the background spitting out messages on the terminal from where I started it - which is kind of annoying. Any way to suppress those and make the engine stay silently in the background. I suspect this might be a simple switch at startup. I am kind of pressed with time so did not go via RTFM. 回答1: Forgot the simple piping of the output to /dev/null, which

Pandoc IPython notebook loses some Mathjax

断了今生、忘了曾经 提交于 2019-12-13 05:02:22
问题 The problem I have is that I have an IPython notebook with some formulas written in MathJax. It is rendered fine in the notebook itself, but when I try to export it, most of my formula is gone! Here's a small reproducible example: I type $ \int \cfrac{ 2 p(\vec{x}) d\vec{x}} { \frac{1}{P(\omega_1 | \vec{x})} + \frac{1}{P(\omega_2 | \vec{x})} }$ It renders well inside the notebook: But when I click file -> print preview, what I get is just a lonely plus sign: In the sources I see this: <p>$ {

Transition from “MacPython” to MacPorts python3 a good idea for EIN & Scipy?

牧云@^-^@ 提交于 2019-12-13 04:01:31
问题 I started off learning Python on OS X 10.6 (Snow Leopard) with a python.org Python dmg. I think I've seen this called "MacPython" on SO, but I'm also thinking that this MacPython (currently Google's top hit for "MacPython") is different, right? Although I felt like my python.org Python 3.3.0 install was working reasonably well for me initially (using distribute , easy_install , and pip , I installed several new packages including IPython ), I'd like to start using Emacs IPython Notebook (EIN)

IPython nbconvert output pdf without In[#] words

血红的双手。 提交于 2019-12-13 02:37:29
问题 When I run below command to convert a IPython notebook to pdf, I wish to remove the leading word "In[#]" but only display the cell content. ipython nbconvert --to=latex --post=pdf input.ipynb 回答1: Some useful information at nbconvert-example. Just copy style_notebook.tplx to local directory and do some minor modify: diff --git a/latex_cell_style/use_cell_style.tplx b/latex_cell_style/use_cell_style.tplx index 72b3c24..9114157 100644 --- a/latex_cell_style/use_cell_style.tplx +++ b/latex_cell