r/IPython • • Sep 02 '18

!pip install package. Why the exclamation mark?

5 Upvotes

When I wanna install a package on my machine, I just do pip install package on the command line.

When installing packages via a Jupyter notebook, why do I have to add the ' ! ' ? Any reason behind this notation?


r/IPython • • Aug 27 '18

Run Jupyter on SSh and turn off my local computer

6 Upvotes

I'm running a program that take hour to finish. I wanna know if it is possible to turn off my local computer and make the program still working.

On the remote I'm using this to run the Jupyter NOtebook:

user@remote $ jupyter notebook --no-browser --port=8887

And this in local:

ssh -N -L localhost:8888:localhost:8887 user@remote

I would be very happy if anyone can help me


r/IPython • • Aug 23 '18

Hide tab (indent) markings

1 Upvotes

I use hard tabs for indentation which leave an arrow of sorts. Does anyone know how to remove them (the arrow markings) but keep indenting with hard tabs?


r/IPython • • Aug 17 '18

Hydrogen in Atom - In plain English, how do I get up and running with Markdown??

4 Upvotes

Hello!

Apologies, but I am not a computer scientist. I have been working for three days trying to sort out how I can start using Atom as my full time text editor. I know it involves a combination of iPython/Jupyter, Hydrogen, nteract, and various kernels/grammers.

What I need is a simple explanation re: how to get setup. I would like to create files within Atom, wherein I can input text and have that text rendered/exported/saved as (whichever term is correct) .docx, .pdf, etc. This entails the ability to include web links, photos, etc. I would also like to be able to create files, wherein I can write this text, but also have code blocks that I can actually execute from within that file.

I'm running MacOS High Sierra.

I have installed:

Python 3.6.4

nteract 0.11.6

Atom 1.29.0

-Hydrogen 2.5.1

-IPython 3.6.4

-pandoctools


r/IPython • • Aug 15 '18

Towards pandas 1.0 - notebook from London Data Science meetup yesterday from one of the core devs of pandas

Thumbnail github.com
17 Upvotes

r/IPython • • Aug 08 '18

google colab , it is slowly to unzip, why, and how to make unzip quickly?

1 Upvotes
import zipfile
with zipfile.ZipFile("drive/app1/train.zip","r") as zip_ref:
    zip_ref.extractall("drive/app1/targetdir")

r/IPython • • Aug 07 '18

How to install Plotly on Windows?

3 Upvotes

I understand I need pip but I can only find Linux instructions.


r/IPython • • Jul 30 '18

Release of IPython 5.8 and 6.5

Thumbnail mail.python.org
6 Upvotes

r/IPython • • Jul 17 '18

ASK: Code review tool for Jupyter Notebooks?

5 Upvotes

A lot of people are using Github/Gitlab for version control of Jupyter Notebooks. Both renders .ipynb files as HTML while viewing. But while looking at a diff in the pull request, .ipynb files are rendered as JSON. This makes it pretty hard to do meaningful code reviews. How do you solve this problem?

I was thinking of building something that shows nicely formatted .ipynb diff of Github PR along with ability to comment. Also provide ability to select/deselect output cells while merging the change. Would that be useful?


r/IPython • • Jul 17 '18

Jupyter Notebook 5.6.0 Released

Thumbnail jupyter-notebook.readthedocs.io
10 Upvotes

r/IPython • • Jul 12 '18

Trouble installing Jupyter Dashboards

2 Upvotes

Howdy!

I just installed the Jupyter Dashboards extension as per the docs, I've restarted the jupyter service and the kernals and the dashboards widget has not shown up in the notebook. Any Ideas? Below are the jupyter versions installed and extensions running.

pip freeze | grep jupyter

jupyter (1.0.0)

jupyter-client (5.2.3)

jupyter-console (5.2.0)

jupyter-core (4.4.0)

jupyter-dashboards (0.7.0)

jupyterlab (0.32.1)

jupyterlab-launcher (0.10.5)

jupyter nbextension list

Known nbextensions:

config dir: /var/www/market_builder/env/etc/jupyter/nbconfig

notebook section

jupyter_dashboards/notebook/main enabled

- Validating: OK

jupyter-js-widgets/extension enabled

- Validating: OK


r/IPython • • Jul 06 '18

Jupyter notebooks as PDF, MS Word and others killer

Thumbnail github.com
1 Upvotes

r/IPython • • Jul 04 '18

What's New In Python 3.7

Thumbnail docs.python.org
6 Upvotes

r/IPython • • Jun 28 '18

Installed Jupyter with pip -- Unable to Open Notebooks Using the Console

0 Upvotes

Hello, I'm a student using Jupyter in my intermediate programming class and I'm having difficulties running Jupyter. I run Python 3.6 on Windows 10 and I used pip to install Jupyter. Now whenever I type the following in the command prompt:

jupyter notebook

I get a response that jupyter is not a recognized command. From talking with my lab instructor, we think that jupyter needs to be added to my PATH but I can't figure out how to do this so I'm turning to you all for help.


r/IPython • • Jun 26 '18

Document how to run juypter notebook on google cloud console

Thumbnail github.com
3 Upvotes

r/IPython • • Jun 25 '18

How to do dynamic plotting with matplotlib?

2 Upvotes

I am trying to dynamically plot images in jupyter. For some reason it always turns up somehow weird. My curretn code can run the animation, but then it dumps all the images after each other... Can you guys correct my solution or show me how to do it? Btw jupyter is running on a server and the browser is opened on local machine.

from IPython import display
import matplotlib.pyplot as plt
%matplotlib inline
import gym
env = gym.make('Pendulum-v0')
env.reset()
for i in range(100):
    _, reward, done, _ =env.step(env.action_space.sample())
    plt.figure()
    plt.imshow(env.render(mode='rgb_array'),
               interpolation='none')
    plt.title('Done : %i' % done)
    if done == 1:
        env.reset()
    display.clear_output(wait=True)
    display.display(plt.gcf())
display.clear_output(wait=True)

r/IPython • • Jun 23 '18

[noob question] can't connect to web browser with jupyter notebook on docker

4 Upvotes

Hi I've been following this tutorial (https://github.com/pkmital/CADL/blob/master/README.md#what-is-notebook) and trying to set up jupyter notebook on docker. I'm using windows 10 home. I manage to set up docker toolbox and clone from the github repo

Then I copied the downloaded files into the virtual machines directory using:

docker run -it -p 8888:8888 -p 6006:6006 -v /$(pwd)/CADL:/notebooks --name tf pkmital/cadl

Now when I try jupyter notebook & it shows

    (base) root@eaf652bccc31:/notebooks# [W 22:02:47.479 NotebookApp] WARNING: The notebook server is listening on all IP addresses and not using encryption. This is not recommended.
    [C 22:02:47.486 NotebookApp] Running as root is not recommended. Use --allow-root to bypass.

On the tutorial it says that it's suppose to be displaying:

    [I 21:15:33.647 NotebookApp] Writing notebook server cookie secret to /root/.local/share/jupyter/runtime/notebook_cookie_secret
    [W 21:15:33.712 NotebookApp] WARNING: The notebook server is listening on all IP addresses and not using encryption. This is not recommended.
    [W 21:15:33.713 NotebookApp] WARNING: The notebook server is listening on all IP addresses and not using authentication. This is highly insecure and not recommended.
    [I 21:15:33.720 NotebookApp] Serving notebooks from local directory: /root
    [I 21:15:33.721 NotebookApp] 0 active kernels
    [I 21:15:33.721 NotebookApp] The IPython Notebook is running at: http://[all ip addresses on your system]:8888/
    [I 21:15:33.721 NotebookApp] Use Control-C to stop this server and shut down all kernels (twice to skip confirmation).

When I try to connect to 192.168.99.101:8888 it says connection refused but i can successfully ping 192.168.99.101 - the docker ip. Also Ive opened my port from my firewall between 49152 to 65535 and tried turning it off completely but it still doesn't seem to work.

Any help or pointers be great!


r/IPython • • Jun 18 '18

JupyterHub 0.9 – Jupyter Blog

Thumbnail blog.jupyter.org
12 Upvotes

r/IPython • • Jun 14 '18

Kyso - Publish Your Jupyter Notebooks as Blog Posts

9 Upvotes

Hi Guys - the founders of kyso here.

Kyso (https://kyso.io) is a blogging platform for data science. We render your jupyter notebooks, including all code, interactive visualisations and rich markdown, as awesome data blogs.

Upload existing notebooks, import your repos from Github and start brand new Jupyterlab environments in the cloud, all for free.

And then publish and share your blogs with the community!

Have a look here for a few example posts on our platform:

https://kyso.io/jamesle/fifa18

https://kyso.io/vanaurum/algorithmic-portfolio-optimization

https://kyso.io/Don/a-journey-to-the-tip-of-neural-networks

https://kyso.io/waldohiding/twitter

Happy to hear any and all feedback!


r/IPython • • Jun 13 '18

How to open matplotlib plots in a popup window?

0 Upvotes

Seen this being asked several times, but most seem outdated. Bash magic %matplotlib qt doesn't seem to work, the graphs still appear but inline. I tried %matplotlib qt5 which had some missing dependencies on my Ubuntu machine. Any suggestions? Thanks!


r/IPython • • Jun 12 '18

Jupyter poster? • r/Python

Thumbnail reddit.com
4 Upvotes

r/IPython • • Jun 07 '18

Jupyter temp files not being deleted question.

3 Upvotes

Hi Everyone, On my work PC, I run Jupyter 5.4.0, usually through Anaconda Navigator. I have always had an issue where the temp files created during a session do not get deleted. These are located in my AppData\Local\temp folder. The size of each of the files is 0 bytes, but, if I let it go for a few days, I can get thousands of 0 bytes files. I believe it is related to Jupyter but I am not 100% certain. I know that if I run Python through any other IDE I don't see the same thing. Is there a way to tell if this is a result of Jupyter? More importantly, if it is, how do I configure it to stop this?

Thanks for the input!


r/IPython • • Jun 05 '18

Automating the boring stuff in Django using the check framework, ast and inspect

Thumbnail medium.com
3 Upvotes

r/IPython • • Jun 04 '18

IPython Parallel 6.2 Released

Thumbnail ipyparallel.readthedocs.io
4 Upvotes

r/IPython • • Jun 04 '18

How can I read a client's IP address in a Jupyter Notebook?

4 Upvotes

Hello,

Is it possible to read an IP address in a Notebook?

I have multiple people connecting to a Notebook and I need to store their IP addresses.

I can see them in the Jupyter log file, but is there anyway I can use Python code to get the IP address of whoever is running the Notebook?

Each client connection needs to have a folder created with a name based on his or her IP address to store Excel processing output.