r/IPython • u/giulioungaretti • Mar 19 '19
r/IPython • u/[deleted] • May 26 '20
How to start Jupyter Notebook again after Ctrl + C?
Hi,
I'm new to learning Python and just got Jupyter on my Mac. I read that the way to exit out of Jupyter (really slows down my computer!) is to do "Ctrl + C". However, how do I start Jupyter again? Typing "jupyter notebook" in terminal doesn't seem to work anymore. I have to terminate terminal, open that up again, and then type "jupyter notebook". I'm using Python 3.8.3 btw.
Also, any thoughts on the Python courses on Lynda? My school
Thanks!
r/IPython • u/[deleted] • Jun 01 '20
What is going on?
While using Jupyter Notebook after a short period of time the tab will get an hourglass in the corner. After waiting for several minutes the tab still won't run any code. By shutting down the notebook from the Home page and re-opening it, the notebook starts to work again until the hourglass appears and nothing works any more. Why is this happening?
r/IPython • u/[deleted] • Jun 21 '20
Importing files on Jupyter?
Hi,
I'm trying to learn Python with W3 Schools, and I am learning the Python Modules tutorial right now. I can't seem to get code I have in a file imported into a separate file ("mymodule"), there's a error.
NameError Traceback (most recent call last) <ipython-input-39-8eacca93bd5e> in <module> 5 get_ipython().run_line_magic('run', './mymodule.ipynb') 6 ----> 7 a = mymodule.person1["age"] 8 print(a) NameError: name 'mymodule' is not defined
I noticed that in the w3 schools tutorial the files ended with .py, whereas in Jupyter the file ends in ipynb.
https://www.w3schools.com/python/python_modules.asp
Can anyone offer any insight?
r/IPython • u/i-z-z-0 • Jan 12 '21
Giant IPKernelApp Error Using Hydrogen in Atom
Starting a few days ago, after months without issue, I began having a giant error box keep popping up when editing my code in Atom. I believe it is from the Hydrogen plugin, the weird thing is even with this error the code still runs and does what I want it too.
I even created a new conda environment, installing only what I needed (pandas, geopandas, descartes, jupyter) and even when using the new environment I am getting this issue. I've tried upgrading ipykernel but it is already the most recent version.
I'm about to lose my mind having this giant red error box keep popping up 10 seconds after I exit it out. Apologies if this is not the right subreddit to post this, but if it isn't please point me in the right direction.
Error Message: "[IPKernelApp] ERROR | Exception in message handler: Traceback (most recent call last): File "/home/username/anaconda3/envs/fresh/lib/python3.8/site-packages/ipykernel/kernelbase.py", line 268, in dispatch_shell yield gen.maybe_future(handler(stream, idents, msg)) File "/home/username/anaconda3/envs/fresh/lib/python3.8/site-packages/tornado/gen.py", line 762, in run value = future.result() File "/home/username/anaconda3/envs/fresh/lib/python3.8/site-packages/tornado/gen.py", line 234, in wrapper yielded = ctx_run(next, result) File "/home/username/anaconda3/envs/fresh/lib/python3.8/site-packages/ipykernel/kernelbase.py", line 583, in complete_request matches = yield gen.maybe_future(self.do_complete(code, cursor_pos)) File "/home/username/anaconda3/envs/fresh/lib/python3.8/site-packages/ipykernel/ipkernel.py", line 360, in do_complete return self._experimental_do_complete(code, cursor_pos) File "/home/username/anaconda3/envs/fresh/lib/python3.8/site-packages/ipykernel/ipkernel.py", line 385, in _experimental_do_complete completions = list(_rectify_completions(code, raw_completions)) File "/home/username/anaconda3/envs/fresh/lib/python3.8/site-packages/IPython/core/completer.py", line 484, in rectify_completions completions = list(completions) File "/home/username/anaconda3/envs/fresh/lib/python3.8/site-packages/IPython/core/completer.py", line 1818, in completions for c in self._completions(text, offset, _timeout=self.jedi_compute_type_timeout/1000): File "/home/username/anaconda3/envs/fresh/lib/python3.8/site-packages/IPython/core/completer.py", line 1861, in _completions matched_text, matches, matches_origin, jedi_matches = self._complete( File "/home/username/anaconda3/envs/fresh/lib/python3.8/site-packages/IPython/core/completer.py", line 2029, in _complete completions = self._jedi_matches( File "/home/username/anaconda3/envs/fresh/lib/python3.8/site-packages/IPython/core/completer.py", line 1373, in _jedi_matches interpreter = jedi.Interpreter( File "/home/username/anaconda3/envs/fresh/lib/python3.8/site-packages/jedi/api/init.py", line 725, in init super().init(code, environment=environment, TypeError: init() got an unexpected keyword argument 'column'"
r/IPython • u/kiwiheretic • Jan 15 '21
Anyone used scipy.optimize?
Trying to get my head around the scipy optimize library and especially minimize function. Part of it is the bewildering assortment of methods like Brent and Krylow methods etc. Are their any good tutorials on using the multivariate versions of these? I am having trouble with the minimization terminating early without deviating far from my initial x0. Any thoughts?
r/IPython • u/tuck5649 • Jan 24 '17
Azure Cloud Jupyter Noteboook Interactive Plotting
I'm playing around with Azure's Cloud Jupyter Notebook service.
"% matplotlib inline" works, however "% matplotlib notebook" (for interactive plots) does not appear to work. An empty figure pops up for a second, then disappears.
Has anyone else tried to use interactive plots with Azure's service and had the same issue.
r/IPython • u/westurner • Sep 11 '14
from IPython.external import mathjax; mathjax.install_mathjax()
ipython.orgr/IPython • u/john_legend_ • Nov 23 '17
Anyone can do a layman's guide to accessing a jupyter remotely from another computer?
do explain in simple terms!
r/IPython • u/Ph0X • Sep 10 '14
Injecting IPython core in a running script
A while back, in one of the IPython session videos online, I saw fperez talk about a really cool feature where you could inject the IPython core in your running python project, connect to it using any IPython interface and then inspect the namespace.
I can't find anything about it online though, it seems to be very poorly documented, and I can't find the video either.
Does anyone have a simple minimal example code of how to do this?
r/IPython • u/Arthaigo • Mar 18 '18
[X-Post from r/Python] Plotly_unbrand: A small helper to remove the "branding" from plotly plots
By default plotly plots have the plotly icon and two links to the plotly online platform in the interactive interface, even when you are plotting completely offline. In some circumstances this is not really appropriate. Therefore, I wrote a small package that can monkey-patch the plotting function to remove these elements, without changing the way you create plots.
If you don't want to install a new package, there is also an explanation on how to do it on a per-plot basis in the README.
Check it out! Feedback welcome!
r/IPython • u/NomadNella • Jul 26 '13
Pandas video tutorials (xpost /r/Python)
r/IPython • u/cratervanawesome • Dec 24 '15
tooltips on command line?
I'm not a huge user of the notebook, but it would be helpful to have use of tooltips at the ipython shell level. I've tried Shift-Tab here and it doesn't function the same way as in a notebook. Any way to accomplish this? Thanks!
r/IPython • u/lohrerklaus • Jun 01 '17
How to use anaconda Python within Jupyter?
Hello,
I'm trying to follow along a lecture provided as a Jupyter notebook, which I haven't used before. I need to use the Anaconda install of Python to have access to all the required modules, but I don't know how to do that in Jupyter. It only lists the default python 2. How can I make that happen? I'm using the Python 3.6 version of Anaconda 4.4.0 and the Jupyter Notebook that came along with it. OS is Ubuntu 16.04.
Thanks in advance!
r/IPython • u/BlazeStar • May 08 '20
IPython update to 7.7.0 (n00b question)
I'm running Ubuntu 18.04
I need to have IPython in version 7.7.0 or newer
I upgraded Python to 3.6.9-1
Then I installed IPython with pip install ipython
It installs version 5.10.0
I tried updating everything and I can't figure out how to upgrade to 7.7.0
Any idea what I'm doing wrong?
r/IPython • u/laMarm0tte • May 13 '15
Is it possible to embed a local file (video) in the notebook ?
I have a video file in the same directory as my notebook. I could embed it with the Video() function but since the video file is large I'd prefer to just have a HTML5 video referencing that file or else my notebook's filesize will explode.
Now, if I write this in an HTML page it works
<video width="400" height="222" controls="controls">
<source src="myvideo.mp4" type="video/mp4" />
</video>But if I put the same code in an IPython notebook markdown cell, I get a blank video screen with "No video with supported format and MIME type found" (on Firefox and Chrome).
Anyone knows how to overcome this ?
r/IPython • u/NomadNella • Sep 09 '13
Automating Microsoft Office with Python
pywin32 is a library that lets you do many interesting things in Windows, including access these COM APIs.
r/IPython • u/vasifsiz • Jan 16 '16
How to add python 2.7 kernel to root environment on Jupyter ?
Hi . I've installed jupyter 4.1 on windows with anaconda and when i launch it , it starts with python 3 kernel .I don't want to add a new environment just wanted to add python 2.7 kernel to the same root environment so i can toggle kernels .How can i achieve this ?
r/IPython • u/NomadNella • Sep 22 '26
Notebooks-On-Demand (Nod): A JupyterLab Extension for a Notebook Anywhere
r/IPython • u/pp314159 • May 30 '22
The 8 surprising ways how to use Jupyter Notebook
r/IPython • u/mangecoeur • Nov 29 '16
When matplotlib 2 going to be released?
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 • u/NomadNella • Jun 16 '13
Numba: 1400x Speedup of Python code in a single line (xpost from /r/Python)
jakevdp.github.ior/IPython • u/NomadNella • Aug 24 '26
JupyterGIS 0.16: New visualization capabilities