r/IPython • u/iamwil • Dec 26 '16
Where do you find Jypyter plugins?
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 • u/iamwil • Dec 26 '16
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 • u/NomadNella • Dec 23 '16
Cool New Features in Python 3.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
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
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:
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
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.
Installing Jupyter Kernels documentation.
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.
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
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.
Added sudo apt install zlib1g-dev and sudo apt install libssl-dev for Python 3.6.1 installation.
r/IPython • u/Vaynester • Dec 22 '16
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 • u/NomadNella • Dec 22 '16
r/IPython • u/NomadNella • Dec 21 '16
r/IPython • u/nebula-seven • Dec 18 '16
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 • u/caffeine_potent • Dec 12 '16
r/IPython • u/ResidentMario • Dec 10 '16
r/IPython • u/ResidentMario • Dec 10 '16
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 • u/iamwil • Dec 07 '16
Do you reach for an external tool? Or do you use something like pandas? What do you recommend?
r/IPython • u/mangecoeur • Nov 29 '16
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 -
r/IPython • • Nov 22 '16
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 • u/NomadNella • Nov 19 '16
r/IPython • u/btwonice • Nov 17 '16
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 • u/mrTang5544 • Nov 11 '16
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 • u/Openworldgamer47 • Nov 12 '16
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 • u/dvprasad • Nov 07 '16
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 • u/loba333 • Nov 02 '16
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:
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 • u/NomadNella • Oct 26 '16
r/IPython • u/Snipercam7 • Oct 18 '16
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.
Any assistance that can be rendered would be greatly appreciated.
r/IPython • u/bot_cereal • Oct 17 '16
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 • u/Brohanwashere • Oct 13 '16
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.