ipython-notebook

IPython notebook does not launch after installing IPython dev version

二次信任 提交于 2019-12-10 16:55:06
问题 I tried today to install the dev version of IPython, but when i run "ipython notebook --pylab=inline" I get an empty notebook opens (no dash board, just a whit blank page) and the command line says: WARNING:tornado.access:404 GET /static/components/jquery-ui/themes/smoothness/jquery-ui.min.css (127.0.0.1) 0 2013-08-05 16:49:57.365 [tornado.access] WARNING | 404 GET /static/components/jquery/jquery.min.js (127.0.0.1 WARNING:tornado.access:404 GET /static/components/jquery/jquery.min.js (127.0

How to get Ipython irkernel to plot graphics inline?

两盒软妹~` 提交于 2019-12-10 16:23:59
问题 Having problems to get an R-script to plot "inline" in Ipython (Jupyter) using the irkernel. The script runs fine but the graphics are displayed in a 'Quartz Windows' instead of inline. How can I change this behavior? Have tried running the same script in Rstudio and get similar but inconsistent behavior. In this case some graphs are displayed within Rstudio while others are displayed in 'Quartz'. Environment is Jupyter latest, irkernel on OSX Yosemite 来源: https://stackoverflow.com/questions

\newcommand environment when convert from markdown to pandoc

浪尽此生 提交于 2019-12-10 15:44:35
问题 I use ipython notebook to type math and then convert to latex. To make mathjax understand \newcommand , I have to put it inside $...$ . For example, $\newcommand{\cl}{\operatorname{cl}}$ works well with mathjax. The problem is that when I convert to tex file using pandoc, it is still $\newcommand{\cl}{\operatorname{cl}}$ there, but what I want is just \newcommand{\cl}{\operatorname{cl}} (no $...$ ). Is there anyone please show me how to solve this problem? Thank you very much in advance! 回答1:

How to input data within Jupyter Notebook

断了今生、忘了曾经 提交于 2019-12-10 15:27:06
问题 I have searched for but have not found a solution to this: Is there a way to create data within Jupyter Notebook, particularly tabular data in the form of a pandas DataFrame, via a spreadsheet-like interface as opposed to pd.DataFrame({a:[],b:[]})? I don't mean read csv or XLwings as solutions, but rather a 'spreadsheet' in the notebook itself so that all information can be edited and stored in one place, and using it feels familiar to a more broad category of people. Open to creative ideas.

How to disable bbox_inches='tight' when working with matplotlib inline in ipython notebook

吃可爱长大的小学妹 提交于 2019-12-10 14:59:17
问题 When work with matplotlib inline backend in ipython notebook, the default behavior is using bbox_inches='tight' to generate the embedded png image internally via savefig(). This eliminates the whitespace around the axes and is great in most cases. However, sometimes one might want to (temporarily) disable this feature, for example, when (s)he wants to manually keep two figures vertically aligned (assume that we don't want to use subplot here): %matplotlib inline from pylab import * plot(rand

Why my bokeh plots doesn't work on github?

本秂侑毒 提交于 2019-12-10 14:58:01
问题 I have a private repo on github and I am experimenting with bokeh. I edit the file in my ipython notebook locally and I can see the plot working. When I push them on github and try to visualize it online I can see all the code except for the graph. On nbviewer I can see other notebooks using bokeh. Is there any difference between the github rendering engine and nbviewer? 回答1: I know this is old, but if someone comes across it in the future... There are two possibilities: GitHub does not

RMagic, IPython and Summary Information

对着背影说爱祢 提交于 2019-12-10 14:53:16
问题 Following the example here http://www.randalolson.com/2013/01/14/filling-in-pythons-gaps-in-statistics-packages-with-rmagic/ I tried the same on a different data set found here, in an IPython notebook. https://github.com/burakbayramli/kod/blob/master/delltest/dell.tgz from pandas import * orders = read_csv("dell.csv",sep=",") %load_ext rmagic %R -i orders print(summary(orders)) I get Length Class Mode [1,] 25 -none- list [2,] 25 -none- list [3,] 25 -none- list .. However the same in R data <-

Is there any way to generate a diff between two versions of an IPython notebook?

柔情痞子 提交于 2019-12-10 14:45:19
问题 I have started using IPython notebook quite a bit for writing up draft sections for my dissertation. However, given two versions of a draft (i.e., notebook) , I would like to be able to generate some form of diff output to show what has changed. Does anyone know if this is currently possible, either through IPython notebook itself, or through some extension? 回答1: Not yet. This is a often a requested feature, but there are different "level" of diff you might want. Do you want only diff of

Expand variables in Markdown cells of ipython-notebook

天涯浪子 提交于 2019-12-10 04:06:45
问题 Inside a markdown cell in an ipython-notebook I'd like to be able to expand variables automatically. Can this be done? As an example, consider the following code from IPython.core.display import HTML from markdown import markdown base_url = "https://stackoverflow.com/" markdown_string = "Two categories at [stackoverflow]({0}) are "\ "[ipython-notebook]({0}questions/tagged/ipython-notebook) and "\ "[matplotlib]({0}questions/tagged/matplotlib).".format(base_url) HTML("<p>{}</p>".format(markdown

iPython - set up magic commands in configuration file

守給你的承諾、 提交于 2019-12-10 03:19:29
问题 I use iPython mostly via notebooks but also in the terminal. I just created my default profile by running ipython profile create . I can't seem to figure out how to have the profile run several magic commands that I use every time. I tried to look this up online and in a book I'm reading but can't get it to work. For example, if I want %debug activated for every new notebook I tried adding these lines to my config file: c.InteractiveShellApp.extensions = ['debug'] or c.TerminalPythonApp