FAQ Database Discussion Community


Read values from another cell in IPython Notebook and supply them for “input()”

python,ipython,ipython-notebook
As an example, if I have a cell that looks like: In [*]: for i in range(int(input())): print(i**2) When the cell is run, an input box pops up and waits for input to be provided. Is there a Built-in magic command or any way to programmatically supply values when input()...

How to covert .ipynb to slides using nbconvert?

terminal,ipython,ipython-notebook,google-api-python-client
I created ipython notebook and I am be able to convert it to HTML and PDF. But when I tried to convert to it slides it turned out just like HTML on one file. Here is the code I use from a terminal prompt: $ ipython nbconvert --slides Testing.ipynb --post...

IPython notebook 3.0 automatically close brackets

ipython,ipython-notebook
I've just downloaded the new IPython 3.0 version. Some behaviour in the notebook has changed. Before, when I typed a open bracket it automatically closed it. This was particularly useful when selecting a text and putting brackets around it with just one click. I tried to adjust ~/.ipython/profile_default/static/custom/custom.js where I...

Resolve Anaconda/iPython Notebooks/Spyder IDE launch failure on zmq lib import?

python,ide,ipython-notebook,anaconda,spyder
This is a fresh Anaconda 2.1 install on Windows 7 - 64, python 2.7.8 . The Spyder IDE fails to launch, and throws the same error/writes same traceback when "python spyder --reset" is run from cli. Looking at the traceback, it appears to be a problem loading 'zmq' module. That...

Debugging IPython notebook when no error is thrown

python,ipython-notebook
I think I'm missing some of the debug output of my IPython notebooks. I've activated the "debug" option and I'm shown stuff like 2015-01-28 08:52:08.894 [NotebookApp] Kernel started: d2e54c85-d386-4029-a1b1-edacba4d1dfe WARNING: Attempting to work in a virtualenv. If you encounter problems, please install IPython inside the virtualenv. ... 2015-01-28 11:31:55.536 [NotebookApp]...

Unable to run ipython-notebook 2.7 with jupyterhub

ipython,ipython-notebook,jupyter
I am trying to run ipython 2.7 notebooks with jupyterhub on Ubuntu 14.04 - but I haven't been able to figure out a way. Any suggestions? I know one needs to add kernels in the file ~/.ipython/kernels.json I have the following in this file: { "argv": ["python3", "-m", "IPython.kernel", "-f",...

Combining functions (AND)

python,pandas,ipython-notebook
I have a question regarding combining functions. My purpose is to apply two functions at the same time. Basically, I want to cut my dataset for extreme values by looking for the 5% quantile at the lowest part of the dataset and the top % at the other end. df...

does IPython Notebook affect speed of the program?

python,numpy,ipython,ipython-notebook
I am developing a program for simulation (kind of like numerical solver). I am developing it in ipython notebook. I am wondering if the speed of the code running in the notebook is the same as the speed of the code running from terminal ? would browser memory or overhead...

Can you upload a data file in a ipython notebook

python,ipython,ipython-notebook
I'm using Ipython Notebook to do some data analysis and i'd like to be able to "upload" (really just copy) data files inside the Json Ipython notebook. This way the Ipython notebook is self contained and doesn't depend on a external file position As an example with open("Anyfile.dat", "r") as...

Pandas Dataframe Plot

python,pandas,time-series,ipython-notebook
I am trying to plot a time series data. The dataframe looks like this [1]:Index ship_date cost_amount 0 1/8/2010 34276 1 1/8/2010 12375 2 1/8/2011 12343 3 2/9/2011 15435 [2]: df1.plot(figsize(20,5)) I am trying to plot the data but for some reason plot doesn't have x-axis in ascending order. How...

How to manage and communicate with multiple IPython/Jupyter kernels from a Python script?

python,ipython,ipython-notebook,jupyter
I want to mimic the functionality of a notebook server, and instead coordinate the creation/management of different IPython/Jupyter kernels from a central body of logic (i.e. my own Python script). For example, I want to: Define an abstract command e.g. "add(x, y)" Communicate the abstract command to multiple kernels e.g....

TypeError: zip argument #1 must support iteration (Vector sum for Ipython)

python,vector,ipython,linear-algebra,ipython-notebook
Hi I'm following "Data Science from Scratch" and I got an error when I was making vector sum function. Could someone help? The code: a = [1,2,3] b = [2,3,4] def vector_add(v, w): """adds two vectors componentwise""" return [v_i + w_i for v_i, w_i in zip(v,w)] vector_add(a,b) #prints [3, 5,...

How to prevent IPython notebook script pausing when the screen locks

ipython,ipython-notebook
I would like to run an IPython notebook script that will take several hours to complete (processing of ~40 movies). However the script pauses when the screen locks and then resumes execution when I login to my account.. Is there anyway to prevent the IPython script from pausing while the...

Syntax highlighting Fortran code in IPython notebook

fortran,syntax-highlighting,ipython-notebook
I want to include some Fortran code in my IPython notebook. How do I get the code snippet to be syntax highlighted ?

Using both Python 2.x and Python 3.x in iPython Notebook

python,python-2.7,python-3.x,ipython,ipython-notebook
I use Ipython notebooks and would like to be able to select to create a 2.x or 3.x python notebook in Ipython. I initially had Anaconda. With Anaconda a global environment variable had to be changed to select what version of python you want and then Ipython could be started....

IPython change input cell syntax highlighting logic for entire session

python,ipython,syntax-highlighting,ipython-notebook
You can use extensions or display helpers in IPython to make whatever syntax highlighting you'd like on output cells. For some special cell magics, like %%javascript you can also see the input cell itself is rendered with that language's natural syntax highlighting. How can you cause every input cell to...

Kernel loading forever in jupyter notebook

ipython-notebook
I'm using OSX Yosemite. I've update ipython via conda and turns out notebook also has updated version, which I'm very excited to try this.The notebook has been converted into jupyter. I'm using python 2.X, and already have existing .ipynb files. When I open it, new window appears but there's blank...

What is the pure Python equivalent to the IPython magic function call %matplotlib inline?

python,matplotlib,ipython-notebook
In IPython Notebook, I defined a function that contains a call to the magic function %matplotlib, like this: def foo(x): %matplotlib inline # ... some useful stuff happens in between here imshow(np.asarray(img)) I'd like to put that function into a Python module so that I can just import and call...

IPython notebook 3 - hide headers by default

customization,ipython,ipython-notebook
Before IPython notebook version 3.0 the notebook headers could be hidden by default by adding this to ".ipython\profile_default\static\custom\custom.js" (on windows): $([IPython.events]).on("app_initialized.NotebookApp", function () { $('div#header').hide(); $('div#maintoolbar').hide(); }); also see this question This does not seem to work anymore. It hides the headers, but it also leaves a big gap on...

How do I add a kernel on a remote machine in IPython (Jupyter) Notebook?

python,ipython,ipython-notebook,ipython-parallel,jupyter
Dropdown menu in the top-right of the UI on a local machine (PC): Kernel-> Change kernel-> Python 2 (on a local PC) Python 3 (on a local PC) My new kernel (on a remote PC) ...

Plot multiple data using for loop, pyplot and genfromtxt

python,for-loop,matplotlib,plot,ipython-notebook
I am pretty sure this particular problem must have been treated somewhere but I cannot find it so I put the question. I have 66 files with data stored in one single column. I wish to plot all data in a single plot. I'm used to do it with bash...

the most rudimentary ipython notebook questions from a first-time user:

python,emacs,ipython-notebook
Been using the safe and easy confines of PyCharm for a bit now, but I'm trying to get more familiar with using a text editor and the terminal together, so I've forced myself to start using iPython Notebook and Emacs. Aaaaand I have some really dumb questions. after firing up...

Is it possible to speed up interactive IPython Notebook plots by not generating new figures every time?

python,matplotlib,ipython-notebook,interactive,jupyter
Every example I've seen of using widgets for interactive matplotlib plots in the notebook do something like this (adapted from here): %matplotlib inline import numpy as np import matplotlib.pyplot as plt from IPython.html.widgets import interact from IPython.display import display def sigmoid_demo(a=5,b=1): x = np.linspace(0,10,256) s = 1/(1+np.exp(-(x-a)/(b+0.1))) # +0.1 to...

Typesetting Math using MathJax for IPython Notebook Web page

html,latex,ipython-notebook,mathjax
I chose to learn to write mathematical expressions in IPython Notebook and sat to explore learning resources. I found this official link. I reproduced the whole tutorial on my IPython NoteBook locally and then published it on my website. I also explained the whole struggle I went into while trying...

Getting r data.frame in IPython notebook

python,r,ipython-notebook,rpy2,ipython-magic
I can get data.frame object when using IPython from the command line like this: In [1]: import pandas as pd In [2]: df = pd.DataFrame({'a':[1,2,3],'b':[2,4,6]}) In [3]: df Out[3]: a b 0 1 2 1 2 4 2 3 6 In [4]: %load_ext rmagic In [5]: col =df.columns In [6]:...

Jupyter (iPython Notebook) interface strange white bar at bottom of screen

python,ipython-notebook
I recently installed iPython notebook (which looks like it has formally transitioned over to Jupyter) in a miniconda Python 3.4 environment. When I launch the interface, I have a huge white bar at the bottom of my screen that serves no purpose (see attached). What is the origin of this...

IPython3 automatically config %matplotlib inline

python,matplotlib,ipython,ipython-notebook
I'm using IPython 3 / Jupyter, and I want to use the %matplotlib option by default. In IPython 2, I had the next option on the ~/.ipython/profile_default/ipython_notebook_config.py c.InteractiveShellApp.matplotlib = 'inline' But in IPython 3, this option is not available anymore. It also disappeared the setting c.InlineBackend.rc, which I used to...

BeautifulSoup parsing unicode giving variable results

python-2.7,unicode,beautifulsoup,ipython-notebook
I am trying to to parse the following ipython notebook however I am getting varying results when I read the unicode into a BeautifulSoup object, i.e. from IPython.nbconvert.exporters import HTMLExporter from IPython.config import Config from bs4 import BeautifulSoup filepath = '2015-05-01_test2.ipynb' config = Config({'CSSHTMLHeaderTransformer': {'enabled': True, 'highlight_class': '.highlight-ipynb'}}) exporter =...

When I download an IPython notebook as a PDF, which font does it use?

pdf-generation,ipython-notebook
Pretty simple question: I like the font of the markdown cells when I convert a notebook to pdf and I would like to know what it is. I don't know how to find out so if someone else does, or knows what it is, I'd be most appreciative. Thanks in...

IPython Notebook: How to combine HTML output and matplotlib figures?

python,html,matplotlib,ipython,ipython-notebook
The following code outputs rendered HTML in the result cell of an IPython command: from IPython.core.display import HTML def putHTML(): source = """ <h1>Yah, rendered HTML</h1> <h2>Here is an image</h2> <img src="http://lbkbd.in/wp-content/uploads/2014/10/HTML-Logo.png"/> """ return HTML(source) How can I use this approach to include figures generated by matplotlib on the fly...

Jupyter: how to make simple illustrations

ipython-notebook,tikz,jupyter
I am learning to use Jupyter/IPython Notebook as an electronic notebook. Sometimes I need simple illustrations to go along with my calculations, e.g. arrows to represent vector quantities. That's the kind of illustration for which TikZ would be used if we were in Latex. Having tried the TikZ magic extension...

Default notebook directory in iPython Notebook - iPython 3.0.0

ipython,ipython-notebook
I upgraded to iPython 3.0.0 (Python 3.4; using the Anaconda environment; Mac OSX 10.9.5) and the behavior on opening a new iPython Notebook session seems to have changed. I have set the c.NotebookManager.notebook_dir option in ipython_notebook_config.py to a particular directory; this used to cause the browser to open in that...

Printing 2 Python Pandas DataFrame in HTML Tables in iPython Notebook

python,pandas,ipython,ipython-notebook
Question: How can you print 2 DataFrame tables together from 1 iPython Notebook row, such that both tables are displayed in the pretty table format? The following prints just the second one, and print df.head() does not produce a pretty table. df = pd.DataFrame(np.random.randn(6,4), index=pd.date_range('20150101', periods=6), columns=list('ABCD')) df2 = pd.DataFrame(np.random.randn(6,4),...

Open 'ipython notebook' as: IPython notebook vs Jupyter

ipython,ipython-notebook,jupyter
I expected to find more documentation on the following: From one computer: C:\Python>ipython notebook opens the browser as 'IPython notebook'. From second computer: C:\Python>ipython notebook opens the browser as 'Jupyter'. I dont have a preference, but when saving from 'Jupiter', I can no longer open the .ipnb in 'IPython notebook'....

R not producing a figure in jupyter (IPython notebook)

r,windows-8,ipython-notebook,anaconda,jupyter
I am very excited about using python and R together and tried using R in Jupyter (ipython notebbok), however, I could not generate figures in the R kernel. The error message shown below is displayed when I try to plot figures. I highly appreciate your help. I am using Anaconda...

Fisher's Exact in scipy as new column using pandas

pandas,scipy,ipython-notebook
Using ipython notebook, a pandas dataframe has 4 columns: numerator1, numerator2, denominator1 and denominator2. Without iterating through each record, I am trying to create a fifth column titled FishersExact. I would like the value of the column to store the tuple returned by scipy.stats.fisher_exact using values (or some derivation of...

Why does savefig and plot commands have to be in the same cell in an IPython notebook?

python,matplotlib,plot,ipython-notebook
I was trying to export some plots from a IPython notebook. Searching I've found this question and could sort the issue. As it's noted in the answer, I had to call savefig in the same cell as the plot commands. My question is, why do those calls must be in...

Ipython notebook pyzmq error

ipython,ipython-notebook
When I run ipython notebook; I get "ImportError: IPython.html requires pyzmq >= 13" error message in console. I already run " pip install "ipython[notebook]" " but I can not run the notebook. Could you pls assist how to solve this issue. C:\Python27\Scripts>ipython notebook Traceback (most recent call last): File "C:\Python27\lib\runpy.py",...

Print into console terminal not into cell output of IPython Notebook

python,windows,ipython,ipython-notebook,python-3.4
I would like to print into the terminal window that runs IPython Notebook and not into the cell output. Printing into cell output consumes more memory and slows down my system when I issue a substantial number of print calls. In essence, I would like this behaviour by design. I...

iPython: Unable to export data to CSV

ipython-notebook,export-to-csv
I have searched a multiple articles, but unable to get iPython (Python 2.7) to export data to a CSV, and I do not receive an error message to troubleshoot the specific problem, and when I include "print(new_links)" I obtain the desired output; thus, this issue is printing to the csv....

Modify line / plot in IPython notebook “interact”

python,matplotlib,plot,ipython-notebook,interactive
Is there a way to modify the plot inside IPython "interact" function rather than replotting it? In case when the plot contains a lot of heavy graphics (or some parts require heavy calculations) it would be much faster than doing the plot from the scratch. I'm trying the following code,...

No module named sympy

python,python-2.7,ipython,ipython-notebook,sympy
Hi I'm learning linear algebra with python with an Edx course. (http://nbviewer.ipython.org/github/ULAFF/notebooks/tree/may-14-2014/). On "02.4.2.10 Practice with matrix-vector multiplication" with the first box, the code is: import generate_problems as gp print("What is the result of the matrix vector product below?") p = gp.Problem() p.new_problem() generate_problems is a module that the professor...

Error when using pandas dataframe map function in ipython notebook

python,pandas,ipython-notebook
I'm just starting out with Python and getting stuck on something while playing with the Kaggle Titanic data. https://www.kaggle.com/c/titanic/data Here's what I am typing in an ipython notebook (train.csv comes from the titanic data from the kaggle link above): import pandas as pd df = pd.read_csv("C:/fakepath/titanic/data/train.csv") I then continue with...

How do I configure mathjax for iPython notebooks?

python,ipython,ipython-notebook,mathjax
I'm trying to find a way for mathjax to not use STIX fonts for math in my iPython notebook. Instead, I'd much rather have it use the 'TeX' fonts. According to the documentation for Mathjax I should use: MathJax.Hub.Config({ "HTML-CSS": { preferredFont: "TeX" } }); That being said, I'm not...

IPython notebook 2.3.0 on Fedora 21 cannot find FontAwesome

python,ipython,ipython-notebook
Looking for help trying to tell IPython notebook where to find the fontawesome fonts on Fedora 21. They are apparently packaged separately under /usr/share/font-awesome-web. Is there some configuration for this? Failure to find/serve the font is causing the buttons not to render correctly in the browser... In the browser, I'm...

Python dictionary as html table in ipython notebook

python,ipython-notebook
Is there any (existing) way to display a python dictionary as html table in an ipython notebook. Say I have a dictionary d = {'a': 2, 'b': 3} then i run magic_ipython_function(d) to give me something like ...

How to commit a file that defies a pattern in .gitignore? [duplicate]

git,ipython-notebook,gitignore
This question already has an answer here: Force add despite the .gitignore file 1 answer I wan't to ignore every IPython Notebook found on my project so I put *.ipynb in .gitignore. However, I would like to commit some specific *.ipynb files that will accompany a release (master branch)....

Display SVG in IPython notebook from a function

python,svg,ipython-notebook
In IPython notebook, the following code displays the SVG below the cell: from IPython.display import SVG SVG(url='http://upload.wikimedia.org/wikipedia/en/a/a4/Flag_of_the_United_States.svg') The following displays nothing: from IPython.display import SVG def show_svg(): SVG(url='http://upload.wikimedia.org/wikipedia/en/a/a4/Flag_of_the_United_States.svg') Is there a way to display an SVG from within a function (or a class)?...

No trigger by the name “interval” was found

python,ipython-notebook,apscheduler
I've been working with APScheduler and when attempting to run the code I get the error "No trigger by the name 'interval' was found" It was perfectly on my local machine but will work on my cloud machine. I have tried: reinstalling apscheduler via pip, easy_install, and manually; upgrading setuptools;...

pandas plot dosen't show in ipython notebook as inline

python,matplotlib,pandas,plot,ipython-notebook
I'm trying to plot graph in ipython notebook inline, but .plot() methos just shows the object information, as <matplotlib.axes._subplots.AxesSubplot at 0x10d8740d0> but no graph. also i could make it show graph with plt.show(), but i want do it inline. so i tryed %matplotlib inline and ipython notebook --matplotlib=inline, but it...

Why is it possible to call functions using slashes in iPython?

python,ipython,ipython-notebook
Today I encountered the possibility to call functions using a rather odd slash-syntax in the iPython console. It worked for me using iPython 2 and 3 on both Windows and Linux as well as in the Notebook but not in a regular Python console. An example of what I mean:...

Bi-variant interactive function plotting using IPython

python,ipython,ipython-notebook
I want to plot two functions, say sine and cosine, with different frequencies --- so the first variable is the function to plot and the second is it frequency. I want to have a selector widget that selects the function and a slider that chooses the frequency. Is it possible...

URLError with SPARQLWrapper at sparql.query().convert()

python,sparql,ipython-notebook,fuseki,sparqlwrapper
I try a small python script to test my SPARQL request. However, just the next simple code doesn't work. from SPARQLWrapper import SPARQLWrapper, JSON import rdflib #connect to the sparql point sparql = SPARQLWrapper("http://localhost:3030/sparql") #SPARQL request sparql.setQuery(""" PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#> PREFIX owl: <http://www.w3.org/2002/07/owl#> PREFIX xsd: <http://www.w3.org/2001/XMLSchema#> PREFIX...

iPython Notebook quits displaying bar chart

matplotlib,graph,ipython-notebook
I have a Python script that I wanted to use to learn iPython Notebook on and I'm having an issue with it displaying the graphs as it proceeds through the text. Here's a partial of the code I'm working with. #import baseline and iteration files df_final = pd.read_csv(os.path.join(CSV_dir, 'mean_prop_iter.csv')) baseline...

Pandas NameError: name 'merge' is not defined

pandas,ipython-notebook
Trying to merge two data frames: ds.head() gives me: Out[35]: yearID teamID lgID playerID salary 0 1985 BAL AL murraed02 1472819 1 1985 BAL AL lynnfr01 1090000 2 1985 BAL AL ripkeca01 800000 3 1985 BAL AL lacyle01 725000 4 1985 BAL AL flanami01 641667 dt[:3] gives me: I need...

ipython %%javascript magic output into cell and console

javascript,ipython-notebook,console.log
How to adjust ipythons' %%javascript cell magic so that it outputs both to output cell of ipython and to console of the browser as shown below I don't want to use alert(). Furthermore, I tried to get similar behavior with nodejs using %%script magic %%script node console.log("Hi") But this is...

Appending Boolean Column in Panda Dataframe

python,pandas,ipython-notebook
I am learning pandas and got stuck with this problem here. I created a dataframe that tracks all users and the number of times they did something. To better understand the problem I created this example: import pandas as pd data = [ {'username': 'me', 'bought_apples': 2, 'bought_pears': 0}, {'username':...

How To Move Files Into Directories based on filename and Count Files

bash,command-line,ipython-notebook
I have seen other topics that are somewhat similar to my question, however I am still a beginner and cannot really understand some of the code that is posted. I have a list of directories that follow either one of the formats, however the numbers at the end are not...

Stop ipython from looking in ~/.ipython

ipython-notebook
I start my notebook with this command line: ipython3 notebook --profile=/ipython3/profiles/qa-ipython3/ipython_config.py \ --ip=0.0.0.0 \ --port=80 \ --no-browser \ --notebook-dir=/ipython3/notebooks \ --ipython-dir=/ipython3/ipython \ --profile-dir=/ipython3/profiles If I delete $HOME/.ipython, I get an exception from ipython: FileNotFoundError: [Errno 2] No such file or directory: '/root/.ipython' What do I have to do to get...

Visual exploration of pandas dataframes

python,pandas,plot,ipython-notebook
I'm working a lot with pandas dataframes containing timeseries. To analyse the data, I make plots for a set of columns and for a slice in the (datetime) index. However, I miss an interactive plot tool or gui that would allow me to: click in a list of columns which...

how to plot histogram of lottery numbers?

python,numpy,matplotlib,ipython-notebook
I'm using ipython notebook to plot histogram of lottery numbers results. I want to demonstrate how many times each number appeared. I have drawing results in CSV file like matrix. I've tried to load numbers in numpy matrix then convert it to int array and then using matplotlib.pyplot.hist() to plot...

Ipython cell magics?

ipython-notebook
My Ipython notebook (IPython 3.1.0, Python3.4, windows7) shows all the magics I would expect when I do %lsmagic, however when I try to run the %%python2 magic, I get an error: 'Couldn't find program: 'python2'', do I have to set an environment variable for the cell magic?

Plots getting getting chopped off in python notebook

plot,ipython-notebook,plotly
I have been doing some experimenting at replacing my matplotlib plots using the plot.ly library inside the ipython notebook. Basically the problem I have is that plot.ly plots that are autosized don't look very good and I have tried to manually tweak them but they always get chopped up in...

IPython nbconvert output pdf without In[#] words

ipython-notebook
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 ...

Adding a matplotlib patch to inline axis twice in an iPython notebook causes offset

python,matplotlib,ipython-notebook
I have a matplotlib patch that I want to add to two different axis objects. Calling ax1.add_patch(my_patch) the first time leads to the correct result, but when I call ax2.add_patch(my_patch), the patch is offset horizontally. Calling add_patch again after that does not change the offset. This only seems to happen...

Troubles after updating ipython (%matplotlib nbagg)

python,matplotlib,ipython,ipython-notebook,jupyter
I installed anaconda distro, I usualy run ipython notebook --pylab inline. I updated ipython using pip install (windows 8.1) and I don't have to write --pylab inline to start anymore I started writing in the cell: %matplotlib nbagg or matplotlib.use['nbagg'], but when I plot something it shows this empty box:...

How to persist ipython notebook without persisting output?

django,git,ipython,ipython-notebook,hipaa
I have an ipython notebook that I invoke through Django's shell_plus --notebook command. I would like to save the notebook, meaning the code cells, without saving the output that follows each code cell. I use this notebook to do analytics and reporting on sensitive patient data covered by HIPAA and...

IPython notebook: How to write cell magic which can access notebook variables?

python,ipython,ipython-notebook
My question is: How can I write an IPython cell magic which has access to the namespace of the IPython notebook? IPython allows writing user-defined cell magics. My plan is creating a plotting function which can plot one or multiple arbitrary Python expressions (expressions based on Pandas Series objects), whereby...

Edit IPython cell in an external editor

vim,editor,cell,ipython-notebook
It would be great to have a keyboard short-cut in IPython notebook, which would allow to edit the content of the current cell in an external editor (e.g. gvim). Maybe just copy the content of the current cell into a temporary file, launch gvim on it, and update the current...

double click to open an ipython notebook

python,ipython,ipython-notebook
Related posts: Open an ipython notebook via double-click on osx How can I open Ipython notebook from double click? I always cd to the directory of the notebook, then type ipython notebook in the browser and then open it in the browser. This steps is very inconvenient. In windows, I...

IPython notebook does not capture all console output

python,ipython,ipython-notebook
within my code I use a Python package that calls external programs which write their output to the same console that IPython is running in. If I now run the same code from an IPython notebook, the output is not written to the notebook output cells, but into the console...

Create notebook from previously saved python script (v4)

python,ipython-notebook
While it is no problem to export to and import from python script with v3 notebook format, i have a problem to find a solution to do the same with v4 format . I mean export notebook to python script is an easy win, but it looks like reverse option...

Version control for IPython notebook

python,git,svn,ipython-notebook
Should we be committing the .ipynb_checkpoints directory into Git or SVN version control for an IPython Notebook?

How to import modules in IPython Clusters

ipython,ipython-notebook,ipython-parallel
I am trying to import some of my personal modules into my IPython Clusters. I am using Anacondas on Windows Vista 64 bit from IPython.parallel import Client rc = Client() dview = rc[:] with dview.sync_imports(): import lib.rf It is giving me this error: No module named 'lib.rf' I can import...

Displaying an HTML file with a JS inside an iPython notebook

javascript,html,css,canvas,ipython-notebook
I have a piece of code in an iPython notebook that programmatically generates a folder named 'sound' containing the following files: index.html, canvas.js, graph.js and style.css. If I open index.html in my browser, I can see exactly the output I want: a graph with a nice JS animation representing vectors...

How can I see function arguments in IPython Notebook Server 3?

ipython-notebook,jupyter
I've recently switched to IPython Notebook 3 (3.1.0-cbccb68 to be exact), the Anaconda version. Previously when I typed a function and opened a parenthesis like this: time.sleep() and if the cursor was between the parentheses then I would get a contextual overlay menu that displayed the function arguments. Now I...

what is the ipython notebook “Terminals” menu option

ipython-notebook
I am running ipython notebook on my OSX machine and/or my ubuntu 14.04 machine. I am using ipython 3.0.0, and ipython (jupyter) notebooks. When I start an ipython notebook, under New there is a terminal option, but it's unavailable for me. I haven't been able to find any documentation on...

IPython notebook stops evaluating cells after plt.show()

python,pandas,matplotlib,ipython,ipython-notebook
I am using iPython to do some coding. When I open the notebook and run some codes by doing SHIFT+ENTER it runs. But after one or two times, it stops giving any output. Why is that. I have to shutdown the notebook again open it and then it runs for...