Questions tagged [ipython]

IPython is a feature-rich interactive shell for Python, and provides a kernel for frontends such as IPython Notebook and Jupyter Notebook.

IPython provides a rich architecture for interactive computing with Python. It includes:

  • A powerful interactive terminal shell.
  • A Python kernel for frontends such as the ipython-notebook and the jupyter-notebook.
  • Support for interactive data visualization and use of GUI toolkits.
  • Flexible, embeddable interpreters to load into your own projects.
  • Easy to use, high performance tools for parallel computing (ipython-parallel).

Version updates:

The IPython 3.x release series is the last where IPython is released as one big package. Starting with IPython 4.0, the parts which work for any language are called Jupyter, while the parts specific to executing Python code remain as IPython.

IPython 5.0 is the last major release to support Python 2.x.


Links:

50 questions
22
votes
4 answers

How to export one cell of a jupyter notebook?

I'm currently working/prototyping into a Jupyter notebook. I want to run some of my code on a standalone iPython shell. For now, I export my iPython code (file --> download as) and then execute it in my iPython (with %run). It works, but I would…
Manu H
  • 409
  • 1
  • 4
  • 13
13
votes
5 answers

Generate pdf from jupyter notebook without code

I have a Jupyter notebook that contains markdown, code, and outputs (graphs). I would like to generate PDF from this notebook. I tried to hide code using HTML code which I get from here then I tried to download it as pdf but again code shows up. But…
GIRISH kuniyal
  • 253
  • 1
  • 2
  • 8
12
votes
3 answers

How do I set/get heap size for Spark (via Python notebook)

I'm using Spark (1.5.1) from an IPython notebook on a macbook pro. After installing Spark and Anaconda, I start IPython from a terminal by executing: IPYTHON_OPTS="notebook" pyspark. This opens a webpage listing all my IPython notebooks. I can…
Kai
  • 303
  • 1
  • 2
  • 10
12
votes
3 answers

Issue with IPython/Jupyter on Spark (Unrecognized alias)

I am working on setting up a set of VMs to experiment with Spark before I spend go out and spend money on building up a cluster with some hardware. Quick note: I am an academic with a background in applied machine learning and work quit a bit in…
gcd
  • 121
  • 1
  • 3
11
votes
3 answers

How to group identical values and count their frequency in Python?

Newbie to analytics with Python so please be gentle :-) I couldn't find the answer to this question - apologies if it is already answered elsewhere in a different format. I have a dataset of transaction data for a retail outlet. Variables along with…
new_analyst
  • 123
  • 1
  • 1
  • 7
10
votes
1 answer

Avoid reloading DataFrame between different python kernels

Is there a way of keeping a variable (large table / data frame) in memory and share it across multiple ipython notebooks? I'd be looking for something, which is conceptually similar to MATLAB's persistent variables. There it is possible to call a…
tsttst
  • 151
  • 1
  • 9
9
votes
3 answers

How to run a pyspark application in windows 8 command prompt

I have a python script written with Spark Context and I want to run it. I tried to integrate IPython with Spark, but I could not do that. So, I tried to set the spark path [ Installation folder/bin ] as an environment variable and called…
SRS
  • 1,045
  • 5
  • 11
  • 22
8
votes
2 answers

How to Use Shap Kernal Explainer with Pipeline models?

I have a pandas DataFrame X. I would like to find the prediction explanation of a a particular model. My model is given below: pipeline = Pipeline(steps= [ ('imputer', imputer_function()), ('classifier', RandomForestClassifier() …
8
votes
4 answers

How to download a Jupyter Notebook from GitHub?

This is a fairly basic question. I am working on a data science project inside of a Pandas tutorial. I can access my Jupyter notebooks through my Anaconda installation. The only problem is that the tutorial notebooks (exercise files) are on…
Ethan
  • 1,625
  • 8
  • 23
  • 39
4
votes
3 answers

Pandas Groupby makes kernel die in Jupyter notebook/Python

I have a groupby in jupyter-notebook that takes ages to run and after 10 minutes of running it says 'kernel died...', The groupby looks like this: df1.groupby(['date', 'unit', 'company', 'city'])['col1', 'col2', 'col3', 'col4', …
BlueIvy
  • 67
  • 1
  • 6
4
votes
2 answers

Create a binary-classification dataset (python: sklearn.datasets.make_classification)

I would like to create a dataset, however I need a little help. The dataset is completely fictional - everything is something I just made up. Since the dataset is for a school project, it should be rather simple and manageable. I would like a few…
4
votes
3 answers

Open-source interactive dashboard in Python

I am trying to find a package to construct a dashboard with interactive graphs (including widgets such as sliders) in python (mainly IPython notebook). I know there is plotly but I would like a fully open-source solution without constraints (i.e.…
user90772
  • 331
  • 4
  • 11
4
votes
2 answers

How to plot large web-based heatmaps?

I want to plot large heatmaps (say a matrix $500 \times 500$). I can do it in Python/matplotlib.pyplot with pcolor, but it is not interactive (and I need an interactive heatmap). I have tried with D3.js but what I found is aiming at displaying small…
mic
  • 513
  • 5
  • 15
3
votes
3 answers

How to install Polynote on Windows?

I've been searching around the Internet for a while but I have not been able to find detailed instructions on how to install Polynote (the polyglot notebook with first-class Scala support) for Windows with mixing multiple languages, Python and…
Pluviophile
  • 3,520
  • 11
  • 29
  • 49
3
votes
1 answer

Jupyterlab Inline Interactive plot

I am trying to make my inline plots in jupyterlab interactive. So far, I have tried a suggestion as pointed out here, among others: https://stackoverflow.com/questions/50149562/jupyterlab-interactive-plot # %matplotlib notebook - does not work :…
N.M
  • 181
  • 1
  • 5
1
2 3 4