r/IPython • u/NomadNella • Jul 17 '18
r/IPython • u/[deleted] • Oct 28 '17
Jupyter Notebooks the best way to use Python
r/IPython • u/agirault • Oct 09 '17
GeoNotebook: A Jupyter Notebook extension for exploratory geospatial analysis
r/IPython • u/NomadNella • Jan 31 '17
Re:Steering Council statement regarding US Executive Order on immigration.
Firstly, this is not /r/politics so I hope this will be the only post that does not specifically relate to coding on this subreddit. However, this is an open-source community where we rely on openness, the inclusion of diverse points of view and the good will of others to continue to improve. Since this order is contrary to these needs and the fact that the Jupyter Steering Committee felt it was important enough to issue a statement, I am posting links to the statement and the announcement.
IPython-dev post regarding "A statement from Project Jupyter regarding the January 27 United States Executive Order on immigration".
If you would like to add your signature you can do so here.
r/IPython • u/midnightFreddie • Sep 16 '16
New to Jupyter. Looks nifty so far!
I had heard of "ipython" and "notebooks" before but never looked into exactly what they are, thinking ipython meant Iron Python and that people were simply using GitHub to store notes.
Yesterday I was finalizing my search for some machine learning tools to analyze log files and found this clustering comparison which convinced me hdbscan is what I want to try for my purpose.
I tried copying the code and running it in an Ubuntu Docker container with Python3 and the needed libraries installed, but I couldn't make it work. I finally figured out that IPython/Jupyter was something different and downloaded a prebuilt Docker image for it. Pretty neat! Most of the examples worked, but the hdbscan module wasn't installed.
I spent an hour or two trying to wedge pip install hdbscan into the container image with varying degrees of progress but no actual success.
I revisted the issue today, and with Google's help I again realized I'm trying too hard to do things the old school way. Inside IPython I just had to
!pip install hdbscan
import hdbscanAnd the final example worked!
I wanted to make a note of my new discovery somewhere, so I just put it here on reddit.
TL;DR: This is really cool:
docker run -d -p 443:8888 -e "PASSWORD=somepassword" ipython/scipyserverThen, from IPython/Jupyter at https://thedockerhost , login with "somepassword", create a new Python 3 notebook:
!pip search whatever-module-I-need
!pip install whatever-module-I-need
import whatever-module-I-need
def do_stuff:
# do stuff
do_stuff()r/IPython • u/jaypeedevlin • Jun 15 '16
Tutorial: How to build a blog from iPython/Jupyter notebooks
r/IPython • u/[deleted] • Nov 20 '15
Tip on how to run plotly examples in offline mode
As some of you may already know, plotly has open-sourced their javascript library. So I headed over to their website and tried to run their examples in my jupyter notebook server. But I would get errors stating that I need to provide API key. Then I found out it is because all the example code is assuming that I had registered with plotly and obtained their API key. However, you can run them if you run them in "offline" mode without having to register. After some digging, I found out all you have to do is have these lines at the top of your script:
from plotly.offline import download_plotlyjs, init_notebook_mode, iplot
from plotly.graph_objs import *
init_notebook_mode()Then delete these lines if present:
import plotly.plotly as py
import plotly.graph_objs as goThen delete any/all "py." or "go." since we removed the imports for those from above.
Then near the bottom of each example script, there is a line:
py.iplot(data, filename='basic-scatter')Replace this line with:
iplot(data)But if you see a variable called "data" and a variable called "layout", you need to create a Python dict from both like so:
fig = dict( data=data, layout=layout )then below that line add:
iplot( fig ) That should be it!
For example. This is plotly's original code for making a bubble chart:
import plotly.plotly as py
import plotly.graph_objs as go
trace0 = go.Scatter(
x=[1, 2, 3, 4],
y=[10, 11, 12, 13],
mode='markers',
marker=dict(
size=[40, 60, 80, 100],
)
)
data = [trace0]
layout = go.Layout(
showlegend=False,
height=600,
width=600,
)
fig = go.Figure(data=data, layout=layout)
plot_url = py.plot(fig, filename='bubblechart-size') Below is what the script needs to be changed to, in order for it to be run in offline mode:
from plotly.offline import download_plotlyjs, init_notebook_mode, iplot
from plotly.graph_objs import *
init_notebook_mode()
trace0 = Scatter(
x=[1, 2, 3, 4],
y=[10, 11, 12, 13],
mode='markers',
marker=dict(
size=[40, 60, 80, 100],
)
)
data = [trace0]
layout = Layout(
showlegend=False,
height=600,
width=600,
)
fig = dict( data=data, layout=layout )
iplot(fig) So with slight modifications, you can run all of plotly example code at their web site.
EDIT: I created a gist of the instructions in jupyter notebook format.
r/IPython • u/vossi • Jul 12 '15
what do you think of cloud based Jupyter?
mainly thinking about https://cloud.sagemath.com/ and https://wakari.io/.
do you know these services and use them? are they good or is there anything missing? looking for a good alternative to setting up my own server and looking for people with experience
r/IPython • u/NomadNella • Jun 06 '15
David Beazley - Modules and Packages
This is a video from PyCon 2015 discussing various options in developing Python modules and packages. If you have 3 hours I would suggest watching it all, but if you don't, I've linked to a few key insights at points within the video.
Time stamp - topic
r/IPython • u/NomadNella • Aug 24 '14
[IPython-dev] New Notebook extensions: Spell checking, document tools, cell tools
mail.scipy.orgr/IPython • u/mathandpython • Aug 05 '14
The best cities to live and work remotely.
nbviewer.ipython.orgr/IPython • u/NomadNella • Mar 21 '14
Datalicious Notebookmania – My favorite 7 IPython Notebooks
r/IPython • u/mcburton • Oct 25 '13
First chapter of Mining the Social Web, 2nd Edition ported to an IPython Notebook - includes full text & code!
r/IPython • u/NomadNella • Aug 03 '13
IPython 1.0.0 has its First Release Candidate!
After much fiddling and bugfixing, IPython 1.0.0 has its first release candidate:
http://archive.ipython.org/testing/1.0.0
quickest way to test:
pip install http://archive.ipython.org/testing/1.0.0/ipython-1.0.0-rc1.tar.gz
If all goes smoothly, expect 1.0.0 final by the end of next week.
-MinRK
r/IPython • u/NomadNella • Jul 08 '13
LLVM may mean the best of both worlds
nbviewer.ipython.orgr/IPython • u/NomadNella • Jun 16 '13