Yes, you can not use the same terminal. Solutions: open another terminal or run ipython notebook inside screen. If you use Windows you might want to take a look into this question Notebook documents (ipynb files) can be converted to a range of static formats including LaTeX, HTML, PDF...

In the IPython notebook, only the result of the last line of a cell is shown, unless it is explicitly printed or displayed. Some options: Put the second df.head() in the next cell Use print df to explicitly print the dataframe -> but, this gives the text representation instead of...

I write this as an answer, although this is more or less a comment. One "hacky" way is to overwrite input or make a generator which returns an input-function with a constant return value. So kind of mocking it… def input_generator(return_value): def input(): return return_value return input This will work...

You need to display the SVG like from IPython.display import SVG, display def show_svg(): display(SVG(url='http://upload.wikimedia.org/wikipedia/en/a/a4/Flag_of_the_United_States.svg')) You first example works as the SVG object returns itself an is subsequently displayed by the IPython display machinery. As you want to create your SVG object in a custom method, you need to take...

A KernelManager deals with starting and stopping a single kernel, and there's a MultiKernelManager to co-ordinate more than one. http://ipython.org/ipython-doc/3/api/generated/IPython.kernel.manager.html http://ipython.org/ipython-doc/3/api/generated/IPython.kernel.multikernelmanager.html Then you can use the .client() method to get a KernelClient instance which handles communications with a kernel: http://ipython.org/ipython-doc/3/api/generated/IPython.kernel.client.html For details of how you communicate with a kernel, see...

Well it took a bit of googling, but if it's any help to anyone you can prevent your Mac from going to sleep by opening terminal and typing pmset noidle, which will tell the power management utility to temporarily disable sleep.

It is because you're doing it in the Notebook in separate cells. You should group your plotting commands pertaining to the same figure into a single cell. As your code currently stands, the Notebook thinks you're referring to a new figure. Unrelated tip: you might consider suffixing your plot-related commands...

A simple test to make sure that you're getting the configuration correct is to change preferredFont: "TeX" to scale: 200. Then save and reload a notebook. The math should be obviously way bigger than before. So assuming that worked, it means your config.js is doing what it needs to. Now,...

No, you should not. Checkpoints are temporary snapshots of your notebooks, in case anything goes wrong (e.g. power outage, etc). This of a checkpoint as the result of saving your notebook. Do you commit each time you make a change and save your that change to disk?

If you attempt to execute some SPARQL request on your local fuseki server through a python script, you could be disturbed by some proxy problem. To resolve the problem you could use the auto-detect property of urllib. from SPARQLWrapper import SPARQLWrapper, JSON, XML #import urllib.request module. Don't forget for Python...

Nevermind, this solve the problem https://github.com/ipython/ipython/issues/5746 I'm using ccp notebook extension, and as Ian Hawke mentioned in the thread, remove the call to the extention at profile/static/custom/custom.js...

You have to redirect your output to the systems standard output device. This depends on your OS. On Mac that would be: import sys sys.stdout = open('/dev/stdout', 'w') Type the above code in an IPython cell and evaluate it. Afterwards all output will show up in terminal....

IPython use kernel is a file in ~/.ipython/kernel/<name> that describe how to launch a kernel. If you create your own kernel (remote, or whatever) it's up to you to have the program run the remote kernel and bind locally to the port the notebook is expected.

This is simply one of the features of ipython. It exists to make it possible to call functions without using the parenthesis. Starting your line with / tells it to treat the first word as a function name, add parenthesis to it, and treat any following words or symbols as...

You are picking up an install of Python in C:\Python27 somehow. Do you have the PYTHONPATH environment variable set? If so, unset it. The easiest solution is to just delete or set aside C:\Python27....

The error you're receiving is because you're not calling the pandas module along with the merge method. An example of merging would be: import pandas as pd merged_df = pd.merge(ds, dt, how='inner',on=['yearID','teamID']) I declared the how parameter so you can see that you can change this as needed....

Your problem (as spotted by @ J Richard Snape) is that your dates are in fact strings so it's ordered lexicographically. You should convert to datetime dtype: df1['Ship_date'] = pd.to_datetime(df1['Ship_date']) After which it should maintain the expected order....

TikZ (prefered solution) If you're already familiar with TikZ the respective magic is probably the best option. To use it, simply clone this repo into your .ipython/extensions directory and load the extension as shown in the example notebook with %load_ext tikzmagic. I just tried with IPython 3.1 and it works...

by default value_counts does not count NaN values, you can change this by doing df['Embarked'].value_counts(dropna=False) . I looked at your value_counts for Gender column (577 + 314 = 891) versus Embarked column (644 + 168 + 77 = 889) and they are different by 2 which means you must have...

ipython is now called Jupyter so perhaps a different version of Anaconda is installed on the other computer? So Jupyter is what ipython will continue to develop as - they dropped python as it is basically "agnostic": it can load different languages - python 2 or 3, but also R...

A solution is available that allows me to keep my MacPorts installation by configuring the Ipython kernelspec. Requirements: MacPorts is installed in the usual /opt directory python 2.7 is installed through macports python 3.4 is installed through macports Ipython is installed for python 2.7 Ipython is installed for python 3.4...

Reposting as an answer: You can set up a git hook that will strip the output from the notebook whenever you commit: gist.github.com/minrk/6176788 A bit more advanced, but less tested, is a tool I wrote called nbexplode, that splits the notebook up into multiple pieces and recombines them. The advantage...

Disclaimer, I work for Plotly. I just created an issue for it on our GitHub page: https://github.com/plotly/python-api/issues/218 For now, I was able to from IPython.display import IFrame and display the plot in a new cell with IFrame(src=your_url, width=your_width, height=your_height). Does that work for you for now? I'll drop a gist...

To get IPython looking into a custom directory for its profiles, the IPYTHONDIR environment variable can be used. On Win7 I use a start stript which sets the variable before starting the notebook to quickly switch between different profiles and IPython versions like set IPYTHONDIR=PATH/TO/DIR/.ipython ipython notebook The same should...

In 1.0, the functionality was bound to ( and tab and shift-tab, in 2.0 tab was deprecated but still functional in some unambiguous cases completing or inspecting were competing in many cases. Recommendation was to always use shift-Tab. ( was also added as deprecated as confusing in Haskell-like syntax to...

~/.ipython/kernels.json is not the right path. And theses files are not ment to be edited by hand. Also the file you have is not valid json, the server will be unable to read it if it was in the right place. use python2.7 -m IPython kernelspec install-self and python3 -m...

It looks like you're building a matrix of pandas series, and passing it to the function. The function wants a matrix of scalars; you can call it multiple times. These two things are not quite the same. There are (at least) two ways to go here. Using apply You could...

If you do vector_sum(a) the local variable result will be the integer "1" in your first step which is not iterable. So I guess you simply should call your function vector_sum like vector_sum([a,b,a]) to sum up multiple vectors. Latter gives [4,7,10] on my machine. If you want to sum up...

I found a solution from the post on this group. Solution I did: I had the most release of R (R 3.2.0) and following the discussion in the above link, I installed R 3.1.3 and copied winCairo.dll from C:\Program Files\R\R-3.1.3\library\grDevices\libs\x64 to C:\Anaconda\R\library\grDevices\libs\x64. Copying winCairo.dll from R 3.2.0 does not work...

Given that you are new to Python I would advise that you install a distribution that already includes the complete scientific python stack such as WinPython or Anaconda. If it is specifically sympy you are after you can play around online at Sympy live. If you want to stick to...

You need parentheses around the conditions due to operator precedence: f = df[(df.temperature >= df.temperature.quantile(.05)) & (df.temperature <= df.temperature.quantile(.95))] The docs show that >= has lower precedence than & so you need the parentheses, besides your code should have raised an ambiguous error. code style wise it is more readable...

You could try the charts library. It uses the interactive Highcharts javascript library to quickly create interactive plots. It has some cool features: Interactive charts (zoom, slide, hover over points, ...) Usable in an IPython notebook Directly plot pandas dataframes Use an interactive variable selector to select which variables you...

This happens because adding the same patch (or, more generally, the same Artist) to more than one Axes is not supported: the Artist can only hold the necessary transform for use in one Axes. Future versions of matplotlib will raise an exception when the user tries to add an Artist...

I guess this issue is caused by a too old version of matplotlib. Using %matplotlib nbagg with ipython>=3.0 requires matplotlib>=1.4.3 (Note that %matplotlib notebook and %matplotlib nbagg are now synonyms). Updating matplotlib via pip install --upgrade matplotlib will probably fix this issue. See also my issue-7797 on github. Thanks to...

Check to make sure the new_links is a list of lists. If so and wr.writerow(new_links) is still not working, you can try: for row in new_links: wr.writerow(row) I would also check the open statement's file path and mode. Check if you can get it to work with 'w'. ...