Skip to main content
IPython

IPython

Computer programWikipedia

Search complete. 19 mentions across 9 episodes found for "IPython".

Nov 22, 2026

David CloughHOST
0:58
We start with introducing the integrated development environment that we're using.
David CloughHOST
1:06
and then using what's called the IPython console for one line calculations.
David CloughHOST
1:15
And then we introduce some elements of the Python language that you can see here down to creating simple plots and getting help.
David CloughHOST
1:29
Finally, we have topics related to input output, creating plots.

5 MINS LATER

David CloughHOST
6:43
So going back to the PowerPoint slides, I'll just point out the features of the Spyder window.
David CloughHOST
6:52
And that is down here.
David CloughHOST
6:54
There is something called the IPython console window.
David CloughHOST
7:00
And that is similar to the command window in MATLAB.
Harrison KinsleyHOST
26:23
Has no attributes.
Harrison KinsleyHOST
26:24
Somebody was following along in an iPython notebook and was like posting the errors in the discord because you run every cell, right? Um, m height car env has no attribute in height what do you mean it doesn't have i swear it does m oh it's under under uh lowercased uh i'm trying to decide how i want to handle that actually um I think that's popping up on the get cues.
Harrison KinsleyHOST
27:05
Yeah.
Harrison KinsleyHOST
27:07
And then is that going to continue? Let me do get cues.
Harrison KinsleyHOST
15:52
Okay, so let me name this Qiskit1 or something like that.
Harrison KinsleyHOST
15:57
Obviously, just I'm assuming you guys aren't amateurs, but Qiskit1, just name it something that isn't Qiskit.py because, well, actually it's an IPython notebook.
Harrison KinsleyHOST
16:06
You get away with it probably.
Harrison KinsleyHOST
16:08
Anyway, just a good idea not to name it exactly the thing that you're going to use.
Julien LesgourguesHOST
35:49
And then you will ensure that all the new things in class automatically propagate to the wrapper without the need to add them manually.
Julien LesgourguesHOST
36:00
Okay, so the goal of the wrapper is to use these basic functionalities of class in a Python script or IPython or a notebook and I will give now some examples I will assume that you like notebooks if you don't you find the same information in this script directory So I assume that you have no problem installing the Jupyter Python module Then you can open one of the distributed notebooks with Jupyter, notebook, one of the names of the notebooks distributed with the code, and we will start with warm-up, which is done precisely for this kind of lecture.
Julien LesgourguesHOST
36:39
So after typing this, you should get the notebook opening somewhere on your favorite browser.
Julien LesgourguesHOST
36:46
And again, if it doesn't work, you can follow the course by typing the normal script version.

15 MINS LATER

speaker_1UNKNOWN
52:09
yeah.
Julien LesgourguesHOST
52:13
Yes, so the default value are all grouped with this logic of user-friendliness, we group everything.
Julien LesgourguesHOST
52:20
So in input.c, input.c, there is a function with all the default value of the cosmological input parameters and another function with all the default value of the precision parameters so everything is in input.c Okay, now another advantage of IPython and even more Python notebook is that you can access to a quick description of the function online.
Julien LesgourguesHOST
52:57
For instance, in this example I have created an occurrence of the class class called Cosmo and I want now to do some cosmology with this and I forgot what I can ask to this class.
Will FarrGUEST
4:43
This is fabulous.
Will FarrGUEST
4:45
So I have here an IPython notebook.
Will FarrGUEST
4:47
You guys are all familiar with IPython notebooks, right? You've been playing around with them for the last couple of days at least, if not longer.
Will FarrGUEST
4:54
It has some basic boilerplate, which I put at the head of almost all.
Will FarrGUEST
4:59
Better restart.
Diogo AlmeidaGUEST
28:14
But when you have like the stateful KV cache, you are like really constrained to it being kind of append only.
Diogo AlmeidaGUEST
28:21
And you have this complicated trade-off, kind of like an IPython notebook where you can never delete to the memory because it's like a really weird, you know, agglomerated state.
Diogo AlmeidaGUEST
28:31
And it turns out that it's very hard to engineer around this because the models are trained with it.
Diogo AlmeidaGUEST
28:36
So if you actually start doing fancy stateful operations with the models having free reign over that state, they'll end up looping and stuff like that.
Christopher ManningHOST
65:24
So I just want to quickly show you a bit of that as to what actually happens with word vectors.
Christopher ManningHOST
65:33
So here's a simple little IPython notebook.
Christopher ManningHOST
65:37
which is also what you'll be using for assignment one only.
Christopher ManningHOST
65:40
So in the first cell, I import a bunch of stuff.
DJ PatilGUEST
69:37
We're going to help make this easier for you.
DJ PatilGUEST
69:39
To the analysis tier, where you've got things like R or IPython, where these things are just really, really tough to use.
DJ PatilGUEST
69:46
How do we make that easier for people? Mm-hm.
DJ PatilGUEST
69:50
Yeah.
Grant SandersonHOST
34:52
I want to jump in here real quick to explain that globals.update locals line, because it is such a ridiculously cursed line of code.
Grant SandersonHOST
35:00
But it has to do with a bug in the sort of IPython embed being used.
Grant SandersonHOST
35:04
So let me just show you what's going on here.
Grant SandersonHOST
35:06
Taking a super simple example, let's say I have this snippet of Python where I define some variable x.
Grant SandersonHOST
35:27
If I run this as just a Python script, I run it from the terminal Python of that thing, it prints out for us f of 10 is equal to 13.
Grant SandersonHOST
35:36
All is well and good.
Grant SandersonHOST
35:37
Now, inside that sort of IPython embed that's being used for Manum, if I take exactly the same code, exactly the same code, it behaves differently, where it says name error, name x is not defined.
Grant SandersonHOST
35:50
Because I think what's happening is that when inside an IPython cell like this, it defines a new function, it doesn't necessarily share the same scope that it would in a normal Python environment.

We value your privacy

We use cookies to understand how you use our platform and to improve your experience. Click “Accept All” to consent, or “Decline non-essential” to opt out of non-essential cookies. Read our Privacy Policy.