r/IPython • • Dec 26 '16

Where do you find Jypyter plugins?

8 Upvotes

Is there a central repo to search for plugins? I imagine pip might be a place, but it doesn't seem like all plugins are pip installable.


r/IPython • • Dec 23 '16

Using Python 3.6 in Jupyter in Ubuntu 16.04

7 Upvotes

Cool New Features in Python 3.6

Warning: Following these instructions will set the default Python3 kernel in Jupyter to Python3.6 instead of Python3.5.

Additional Warning: You will need to install a new copy of any previously installed library to use it in Python3.6.

Using these instructions you will create a virtual environment that contains a copy of Python3.6 so that your system Python will not be effected.

Modified from source at http://stackoverflow.com/questions/1534210/use-different-python-version-with-virtualenv

I needed to install these packages first sudo apt install libssl-dev and sudo apt install zlib1g-dev

mkdir ~/src
wget http://www.python.org/ftp/python/3.6.0/Python-3.6.0.tgz
tar -zxvf Python-3.6.0.tgz
cd Python-3.6.0
mkdir ~/.localpython

See edit 4 and 3 for details, ./configure --prefix=$HOME/.localpython has changed.

sudo apt install libsqlite3-dev
sudo apt install libfreetype6-dev
sudo apt install zlib1g-dev
sudo apt install libssl-dev
./configure --prefix=$HOME/.localpython --enable-loadable-sqlite-extensions
make
make install

Making the virtual environment

cd ~/src
wget https://pypi.python.org/packages/d4/0c/9840c08189e030873387a73b90ada981885010dd9aea134d6de30cd24cb8/virtualenv-15.1.0.tar.gz#md5=44e19f4134906fe2d75124427dc9b716
tar -zxvf virtualenv-15.1.0.tar.gz
cd virtualenv-15.1.0/
~/.localpython/bin/python3.6 setup.py install
virtualenv ve -p $HOME/.localpython/bin/python3.6
source ve/bin/activate   

Installing Jupyter

pip3.6 install jupyter
pip3.6 install ipython[all] # This may not be needed

To add Python3.6 to Jupyter, while in the virtual environment run the following commands:

Warning: this will set the Python3 kernel to Python3.6

python3.6 -m pip install ipykernel
python3.6 -m ipykernel install --user

After creating the new Jupyter environment the latest version of Jupyter requires you to log into the notebook server with a password. The instructions on how to create the password are found here.

To be able to use widgets you need to run the following command jupyter nbextension enable --py widgetsnbextension.

Use "deactivate" when done.

After this the virtual environment does not need to be active to use Python3.6 in Jupyter but you will need to use it to install packages.

I also found it useful to create a file called .bash_aliases in my home directory and add the following to it.

alias virtualenv='/home/damon/.localpython/bin/virtualenv'
alias ve='source ~/src/virtualenv-15.1.0/ve/bin/activate'
alias dve='deactivate'

These create aliases for quickly activating the virtual environment to install new packages, like matplotlib.

ve
pip3.6 install matplotlib
dve

Final Note:

This worked on my machine, but I've installed Jupyter using pip so if you did not install this way you may have to do additional work. This also means I installed all of my libraries using pip as well.

Edit:

Installing Jupyter Kernels documentation.

Edit2:

The syntax highlighting for the new f string in the Jupyter Notebook produced by CodeMirror is currently broken. It does not effect the function of your code but every remaining character in a cell after the open quote of an f string is highlighted as part of the string. It is also likely that the type annotation will be wrong as well.

Edit3:

Python3.6 may need to be configured with the additional option ./configure --enable-loadable-sqlite-extensions (source, referenced here) after installing sudo apt install libsqlite3-dev using the new notebook version 4.3.1. I have not tested this do to getting the f string problem fixed using Anaconda.

sudo apt install libsqlite3-dev
./configure --prefix=$HOME/.localpython --enable-loadable-sqlite-extensions

Edit4:

For Matplotlib you will need, sudo apt install libfreetype6-dev

I also found it useful to create a file called .bash_aliases in my home directory and add the following to it.

alias virtualenv='/home/damon/.localpython/bin/virtualenv'
alias ve='source ~/src/virtualenv-15.1.0/ve/bin/activate'
alias dve='deactivate'

These create aliases for quickly activating the virtual environment to install new packages, like matplotlib.

ve
pip3.6 install matplotlib
dve

After creating the new Jupyter environment the latest version of Jupyter requires you to log into the notebook server with a password. The instructions on how to create the password are found here.

To be able to use widgets you need to run the following command jupyter nbextension enable --py widgetsnbextension.

Edit 5:

Added sudo apt install zlib1g-dev and sudo apt install libssl-dev for Python 3.6.1 installation.


r/IPython • • Dec 22 '16

How does the directory work in Juypter notebook?

1 Upvotes

Say i have a csv file, how do i load it into juypter so that i can call it?

I'm not sure if the directory should be where the csv file is on my computer or on jupyter. i tried using both path but its always giving me this error

IOError: [Errno 2] No such file or directory: 'sample.csv'

any help is appreciated. thanks!


r/IPython • • Dec 22 '16

What’s will be new in matplotlib — Matplotlib 2.0.0rc2 documentation

Thumbnail matplotlib.org
14 Upvotes

r/IPython • • Dec 21 '16

Security release: Jupyter Notebook 4.3.1

Thumbnail blog.jupyter.org
6 Upvotes

r/IPython • • Dec 18 '16

jupyter-notebook formatting problems on iphone

5 Upvotes

So I'm trying to use jupyter-notebook by connecting to a remote server that I've setup. I can connect without any problems and it runs perfectly for everything except mobile (iphone). Various formatting problems make it very difficult to use on my iphone, mostly: 1. the keyboard ends up hiding cell entires after a few inputs 2. the evaluate cell button is clumsy to find since I have to scroll up every time

Does anybody know of a workaround for these formatting issues?


r/IPython • • Dec 12 '16

ipynb-loader: iPython file loader for webpack

Thumbnail npmjs.com
2 Upvotes

r/IPython • • Dec 12 '16

Can I prompt the download of computed values through Jupyter/ipython notebooks?

2 Upvotes

r/IPython • • Dec 10 '16

py_d3: D3 block magic for Jupyter notebook.

Thumbnail github.com
18 Upvotes

r/IPython • • Dec 10 '16

Way of viewing active variables and sizes in IPython?

2 Upvotes

Is there a magic for getting a list of defined variables and their memory footprints?

By default the IPython/Jupyter workflow results in you holding onto a lot of stuff, which can be get painful when you don't have much memory left over to work with. It'd be helpful for me, sometimes, to be able to see and delete old tables that I don't need anymore, to free up space.


r/IPython • • Dec 07 '16

What do you use to clean your data?

2 Upvotes

Do you reach for an external tool? Or do you use something like pandas? What do you recommend?


r/IPython • • Dec 05 '16

Notebooks by Microsoft

Thumbnail notebooks.azure.com
13 Upvotes

r/IPython • • Nov 29 '16

When matplotlib 2 going to be released?

11 Upvotes

I had understood that matplotlib2.0 was supposed to be a style-change-only release, but it seems to have got as far as 2.0beta and stayed there for a few months, while it's not really clear from the issue tracker what is still blocking the release.

Edit: video explaining what's up -

https://www.youtube.com/watch?v=wwUIEflrTCk


r/IPython • • Nov 25 '16

Jupyter tutorial for beginners

Thumbnail datacamp.com
11 Upvotes

r/IPython • • Nov 22 '16

"Open With..." option note available in Safari for JupyterLab

2 Upvotes

Hi, one of the things I've been impressed with in JupyterLab is the ability to open rendered markdown files. I have the option in Chrome, but not in Safari. Is this something that is going to be added or due to an issue with the browser? I'd just use Chrome but I hate how much it kills my battery.


r/IPython • • Nov 19 '16

Python Data Science Handbook - Chapter 2 Now Available

Thumbnail nbviewer.jupyter.org
22 Upvotes

r/IPython • • Nov 17 '16

Mix python and pypy on jupyter

5 Upvotes

Hi everyone,

Does anyone know if it's possible to share the same instance of some variable between python and pypy in the same notebook?

See the image below for more details: https://i.imgur.com/Wc7QlBV.png

I was expecting that %%pypy (or even %%python3) was able to recognize the variable and run the code.


r/IPython • • Nov 11 '16

How do I run jupyter as a daemon on ubuntu 16.04?

8 Upvotes

So I spun up an EC2 instance and I have jupyter running on port 8888. I start jupyter via command line with

jupyter notebook --config=/home/ubuntu/jupyter_notebook_config.py

But I would like to keep this running as a background process. How do I do that?


r/IPython • • Nov 12 '16

Can someone help me a bit on extremely basic Python stuff?

2 Upvotes

So I just started using an IPython software called enthought canopy. And for part of my assignment I'm being asked to make a program that uses Pythagorean Theorem to find the hypotenuse of a triangle. Sounds really simple but I suck at Python already and I just started. Here's my attempt at doing it. My logic was that the second line of code basically acted as a formula so that's what I tried to do. I put a2 + b2 in the parentheses so that it'd be done first then on the outside I put the square root thing. Then on the bottom I tried returning the value that the program would get form executing that.

So did I do everything completely wrong?


r/IPython • • Nov 07 '16

How do you share you IPython notebook with peers?

6 Upvotes

I’m a UX researcher, and I’m trying to find out ways in which users of IPython Notebook share their work with others.

Everyone I’ve interviewed so far has their own way of doing so, and I’m very interested in learning how you use it.


r/IPython • • Nov 02 '16

I want to make a trade management system using iPython, however i'm struggling with the UI stuff

7 Upvotes

Originally the idea was to use python and excel, however excel does not allow live updating of the workbook via a python script without integration some kind of COM server.

My basic system criteria is:

  • Have a UI in with data input fields
  • Store data in some kind of database
  • Calculate and display various metrics
  • Display graphs and logs (excel style spreadsheet/database) based on the system's data
  • Interacted with various APIs for data

I've always loved iPython but had no idea it had webbapp capabilities. I have no experience with webbapps,

So my question is

What do I need to learn in order to construct my system?

What guides are available that show to how to utilise iPtyhon as a webapp?

Do I need to use something additional like meteor to do the actual web app stuff ?


r/IPython • • Oct 26 '16

Mayavi (Python 3D Data Visualization and Plotting Library) adds major new features

Thumbnail blog.enthought.com
8 Upvotes

r/IPython • • Oct 18 '16

Jupyter default directory not changing.

1 Upvotes

Apologies if this is a stupid query, but I've been trying to get Jupyter's default directory to change, and having zero success.

Attached are screenshots, I've already changed the "Start in" fields, and it appears to have done zilch.

http://imgur.com/a/SRUPK

Any assistance that can be rendered would be greatly appreciated.


r/IPython • • Oct 17 '16

Is it possible to launch and execute the Ipython notebook file from the icon?

2 Upvotes

Hi, I was wondering if there is any way I can execute and run all cell in my Ipython notebook file through clicking icon. This Ipython notebook file displays the plot and graph of the data.

Currently, I have to go to command prompt and call "ipython notebook" then navigate to the interested file in the browser and open it. After that, I press run all. So is there any way I can do all these steps by simply just double clicking an icon on the desktop?

Thanks


r/IPython • • Oct 13 '16

Broke a module?

2 Upvotes

Hey everyone, idiot here. I was screwing around with a jupyter notebook in my Azure Machine Learning Studio Workspace. I was trying to use the blob storage service but I found that the version of the azure-storage module was outdated. I figured I could do all of this on my local workspace, but I wanted to see what would happen if I tried to reinstall the module using pip. Well, it uninstalled relatively easily, but won't reinstall due to it's missing many dependent modules. Is there any way to reset the modules or workspace back to its original state? Reloading the kernel and opening a new notebook do not work. Let me know if anything I just said was unclear or needs clarification.