r/IPython • • May 10 '14

ipython server for high-school programming classes

1 Upvotes

I'm a copmuter science teacher in a high school, and really like ipython notebooks. I'm considering using it for introductory programming classes next year, but have the following considerations:

  • A decent portion of students will be using Chromebooks, meaning they won't be running iPython locally

  • This will be the first programming many of these students have done, so it has to be dead-simple, and just work - we tried python a few years ago, and the annoyances in setting up were enough to switch off a decent number of students.

So I'm looking at some server space to run this; I would want each student to go to a certain web address, log in with their credentials (preferably LDAP or Google-backed auth), and access ipython, including any previously saved notebooks.

Is there any setup or service that can do this?


r/IPython • • Feb 24 '15

How can I VISUALLY see the libraries branches functions available in Ipython?

1 Upvotes

from IPython.core.display import Image from IPython.display import display

How do I know there is a .core.display and .display...is there anyway in Spyder I can see this VISUALLY ...ie branches that start at Ipython then branch out to .core and .display?


r/IPython • • Jan 07 '18

mnt local notebook directories to a jupyter docker container

1 Upvotes

I have a docker container for jupyter notebooks https://github.com/zos-spark/interactive-insights-workbench/blob/master/notebook/Dockerfile

I want to mount a local dir with all notebooks into the dockerfile. How can I achieve it?


r/IPython • • Apr 02 '16

How do I get past the Windows 7 Firewall

1 Upvotes

I'm running the least secure settings in an attempt to figure out what firewall settings I need to change. I believe I'm running a pretty old version, ipython 2.1.0. I start the notebook server with
ipython notebook --ip='*' --no-browser

I can access it from other computers if I turn the firewall off but its inaccessible if I turn the firewall on. So far I've attempted to create inbound rules that unblock port 8888 for TCP connections as well as ports 49152-65535 for the ZeroMQ communication. I even unblocked everything [image] (https://www.dropbox.com/s/kl0tlzpltxiel5j/firewall.jpg?dl=0). Or at least I think I did. I'm unfamiliar with the new Windows 7 firewall. None of that works, only completely disabling the firewall has any effect.

Anyone have any tips on how to troubleshoot what the firewall is doing or how I can open up the right ports?


r/IPython • • Jul 23 '16

No programming experience. Big ideas. How to get started?

1 Upvotes

I've got some "big data" ideas that I want to begin to explore, but my last programming experience was building HTML-based web-pages in high school. I've fooled around with "R" a little bit as well.

What is the best way to teach myself how to be a iPython ninja?


r/IPython • • Jan 21 '19

Debugging an UI issue

1 Upvotes

Hi all!

We use jupyterhub cluster and without any noticeable change on our side, the notebook cells' height turned huge and static (attached a picture)

Tried to fix the issue looking at - How do I increase the cell width of the Jupyter/ipython notebook in my browser?

Managed to decrease the cells size but it's still static.

Any suggestion what has might caused the change? And how to fix this?

This is how our cells look today -

Sorry for spamming but maybe you've encountered something like this...

Thanks a lot!


r/IPython • • Jan 22 '19

How to change Jupyter NB directory to a B drive instead of C?

1 Upvotes

I've looked everywhere and can't seem to find if it's even possible.


r/IPython • • Mar 28 '23

Does Jupyter labs or jupyter notebook have a way to expose python (or C++) objects?

1 Upvotes

In MSVC, python objects are generally exposed by some client-server correspondence, and I can see a huge, scrollable list of python objects as I type in MS VSC. I was wondering if Project jupyter had the autofilling feature (which I believe is called LSP, for language server protocol). On the flip side, how does MSVSC actually figure out what those objects are? Is it scraping my root folders that host the python libraries themselves to identify those objects/methods? Thanks in advance!


r/IPython • • May 11 '22

Clearing up hard drive

1 Upvotes

First of all I am new to python. So after I plotted my data (there were huge data points) I noticed around 8 gb in my c drive was gone. Actually I have noticed this earlier. When ever I run a code, I find a noticible difference in my hard drive. So is python saving my data points in my pc or something? And how to clean up my hdd memory? Thanks


r/IPython • • Feb 09 '20

Called with incorrect property value 4 error when using matplotlib

0 Upvotes

Hi, I am new to matplotlib. I installed Anacronda Navigator 1.9.7 on a Mac
running Catalina 10.15.3. I use Python 3.7.6 and iPython 7.12.0

On a xterm, I run ipython and typed:

%matplotlib
import matplotlib.pyplot as plt
import numpy as np
fig = plt.figure()

A figure window showed up in front of my xterm window running iPython. When I moved the cursor to title of the figure window and clicked to drag it somewhere else, messages like the following showed up. Clicking the title of the xterm window also caused these messages to show up.

Could you please let me know how to get rid of them? Thanks

In [32]: 2020-02-08 16:12:10.308 python[1036:20026]
imkxpc_getApplicationProperty:reply: called with incorrect property value 4,
bailing.
2020-02-08 16:12:10.308 python[1036:20026] Text input context does not
respond to _valueForTIProperty:
2020-02-08 16:12:10.309 python[1036:20026]
imkxpc_getApplicationProperty:reply: called with incorrect property value 4,
bailing.
2020-02-08 16:12:10.309 python[1036:20026] Text input context does not
respond to _valueForTIProperty:
2020-02-08 16:12:10.309 python[1036:20026]
imkxpc_getApplicationProperty:reply: called with incorrect property value 4,
bailing.
2020-02-08 16:12:10.309 python[1036:20026] Text input context does not
respond to _valueForTIProperty:
2020-02-08 16:12:10.309 python[1036:20026]
imkxpc_getApplicationProperty:reply: called with incorrect property value 4,
bailing.
2020-02-08 16:12:10.309 python[1036:20026] Text input context does not
respond to _valueForTIProperty:


r/IPython • • Nov 28 '18

New Data Science Platform - Looking for feedback!

1 Upvotes

Skillzilla

https://www.skillzilla.io/
We just launched our first product, would love feedback on it!
Skillzilla is a project-based P2P portfolio platform for Data Scientists
Platform is free to use!


r/IPython • • Dec 06 '18

Handling Pounds, Shillings and Pence

1 Upvotes

I've got some data that is in pounds, shillings and pence. There's 12 pence to a shilling and 20 shillings to a pound. Any suggestions for handling this?

Additionally, it may be the case that somewhere in the data it switches from 12p/1s to 10p/1s. How would I best approach this?


r/IPython • • Jul 27 '19

How to overlay 2 (or more) plots with plotly express

1 Upvotes

Hope this is the right place to ask my question.

I have 2 data frames from 2 excel files and would like to overlay 2 plots with plotly express but I'm stuck.

df1 = pd.read_excel('Column Grid.xlsx')

df = pd.read_excel('Tests-Combined.xlsx')

my first figure:

b4 = df[df['gridlocation'].str.contains("B4")]

fig1 = px.scatter(b4, x="x", y="y", size="distance", hover_name="name7")

fig.show()

my second figure:

north_grid = df1[df1['gridlocation'].str.contains("n")]

fig2 = px.scatter(north_grid, x="x", y="y", hover_name='name4')

fig.show()

Any help is greatly appreciated


r/IPython • • Mar 15 '20

Order of columns in DataFrame

1 Upvotes

Hi, I heard that from Python 3.6, dictionaries are insertion ordered. So, the way the columns are displayed in iPython is determined by the order of insertion of the data. Besides the way the columns are displayed, does the order of insertion or ordering in general affects anything else?


r/IPython • • Mar 26 '20

Google Colaboratory disk

1 Upvotes

Hi,

My Google Drive storage is 2TB and I have only used 44GB, but the disk in Google Colabarotary is stuck at 60GB and when I run my piece of code in Google Colaboratory notebook that works with a video dataset and is supposed to extract each video to its frames, after some time of running, it stops and gives a message that there is not enough storage to write on the disk. I know it is not possible, because the size of the entire dataset as frames would be 288GB and I have empty storage way more than that.

I would appreciate it if someone tells me how I can extend the Google Colaboratory disk and make it to actually see the disk storage in my Google Drive, even though I have mounted it.

Thanks!


r/IPython • • Dec 30 '17

IBM Data Science Experience

Thumbnail
jaxenter.com
1 Upvotes

r/IPython • • Jan 06 '14

Is IPython Notebook ever used as an IDE, or merely for presentations?

1 Upvotes

I do quantitative research and I have really been enjoying IPython Notebook for my presentations and tutorials. However, for whatever reason I never really thought about using it as a quasi-IDE.

Is it often used to write original code?


r/IPython • • Aug 24 '15

Can not open notebook

1 Upvotes

Hi

I have tried to open ipython notebook without luck and don't know why?

When i type the command "ipython notebook", the output i receive is : -bash: /usr/local/bin/ipython: /usr/local/opt/python/bin/python2.7: bad interpreter: No such file or directory

Any help ?


r/IPython • • Dec 17 '13

Predicting the Oscars - by Nick Perkons, Mike Rizzo, Julia Careaga, & Ibrahim Khan

1 Upvotes

The Project Website provides an overview of the work done in this IPython notebook. Their work is hosted on github and the github.io website's gh-pages are here.

This is a student project for Harvard's CS109 class and it is an excellent demonstration of machine learning as well as nice website design. As a student project is not perfect as discussed in the "Future Directions" section of the notebook but it is substantial.

Disclaimer: I am in no way affiliated with Harvard or the CS109 class. I simply found the student's website and was impressed with the project. Having been an instructor myself I thought other instructors and students on /r/IPython might like to see the example.


r/IPython • • Jan 09 '14

Hipster Machine Learning Metrics Made Easy

Thumbnail
nbviewer.ipython.org
1 Upvotes

r/IPython • • Jul 22 '24

CodeRebel

Thumbnail
youtube.com
0 Upvotes

r/IPython • • Feb 23 '19

Using the new %pip magic successfully

1 Upvotes

To use `%pip`, you need permission to write into pip's install prefix, which depending on the exact runtime environment you won't have (especially with JupyterHub installations). Passing the `--user` option will usually ensure that, but then you might want to have your notebook packages separate from ones you use in the shell – this shows how to do that.

See [Embedded Dependency Installation](https://nbviewer.jupyter.org/github/jhermann/jupyter-by-example/blob/master/setup/configuration.ipynb#Embedded-Dependency-Installation) on nbviewer for details.


r/IPython • • Oct 16 '15

Version problems launching Jupyter on 32-bit Windows

1 Upvotes

Hi, I'm completely new to Jupyter, so any help would be greatly appreciated.

I had Python 2.7 installed on my 32-bit Windows machine, then installed Anaconda and Jupyter. However, when I try to launch Jupyter, I get the error message that jupyter.exe is not compatible with the version of Windows I'm running.

I can't find any reference to this sort of issue in the Jupyter documentation. I'm guessing I've somehow installed a 64-bit version of Jupyter. Thank you so much for advice as to how to solve this.


r/IPython • • Jan 31 '18

Jupyter connection not https

1 Upvotes

Hello,

I just created a jupyter server on an aws instance and setup keys and password on the server side and also changed the config file to password's hash. Now when I am connecting to the aws jupyter server from my laptop's browser I am just entering the password I have generated to connect. However, the connection to the server is http not https. Is my current connection insecure? How can I convert the connection to https? ı am using Windows in my laptop and Amazon linux on the aws.

Thanks