How I Met Your Mother: Season 7, Episode 24

The Magician's Code: Part 2 (14 May 2012)

TV Episode  -   -  Comedy | Drama | Romance
Your rating:
    1 2 3 4 5 6 7 8 9 10 -/10 X  
Ratings: 8.8/10 from 1,494 users  
Reviews: 4 user

Ted makes a fateful phone call to his old girlfriend Victoria, Barney's magic trick gets him in trouble with airport security just as he's about to leave on a trip with Quinn, and Robin tries to take the perfect birth announcement photo.



(creator), (creator), 6 more credits »
0Check in

User Lists

Related lists from IMDb users

a list of 21 titles
created 23 Jan 2011
a list of 24 titles
created 01 May 2012
a list of 1417 titles
created 01 Jan 2013
a list of 27 titles
created 7 months ago
a list of 24 titles
created 2 weeks ago

Related Items

Connect with IMDb

Share this Rating

Title: The Magician's Code: Part 2 (14 May 2012)

The Magician's Code: Part 2 (14 May 2012) on IMDb 8.8/10

Want to share IMDb's rating on your own site? Use the HTML below.

Take The Quiz!

Test your knowledge of How I Met Your Mother.
« Previous Episode | 160 of 208 Episodes | Next Episode »





Episode complete credited cast:
Loretta Stinson (voice)
Mrs. Matsen (as Renee Taylor)
Guard #1
Guard #2
Christopher Carroll ...


As Lily and Marshall become a threesome with the arrival into the world of Marvin Wait-For-It Eriksen, Ted, Robin and Barney review the status of their lives at this present time. Ted and Robin come to an understanding about their relationship. Robin believes that Ted has always chased after the wrong girl, with the exception of one, who she encourages Ted to go after. But Ted will have to make one further decision based on the status of that woman's own life at this time. And Barney is afraid that running away to Atlantic City has led to the end of his and Quinn's relationship. Their relationship is able to survive this incident, so much so that they decide to take their first vacation together to Hawaii. But they have some problems getting through airport security because of the magician's box Barney has in his carry-on, the secret to which he refuses to divulge except to a fellow magician. The secret of the magician's box will lead indirectly to Barney's life with who will become ... Written by Huggo

Plot Summary | Plot Synopsis


Comedy | Drama | Romance





Release Date:

14 May 2012 (USA)  »

Company Credits

Show detailed on  »

Technical Specs


Sound Mix:

Aspect Ratio:

16:9 HD
See  »

Did You Know?


Barney says he was taught magic by Mr. Flanagan of the Staten Island Mall Magic School, but previously he was taught magic by his father (his Uncle Jerry). See more »


Mr. McIntee: I need to ask you both a few questions. Let's start with you. Name?
Quinn Garvey: Quinn Garvey.
Mr. McIntee: Occupation?
Quinn Garvey: Unemployed.
Barney Stinson: Well, well, well. Look who's keeping secrets now. Sir, I'll tell you her occupation: Stripper. She insists she's proud of it, but apparently not proud enough to tell you.
Quinn Garvey: Barney, I was going to surprise you with this on our trip, but... I quit.
Barney Stinson: You... did that for me?
Quinn Garvey: Yes. And now that you know what I did for you and how much I care for you, would you please show him the trick?
See more »


References American Psycho (2000) See more »


The Wind
Music & lyrics by Cat Stevens
Performed by Cat Stevens
See more »

Frequently Asked Questions

This FAQ is empty. Add the first question.

User Reviews

One of the best episodes yet, gives you some answers but also leaves you hungry for more
15 May 2012 | by See all my reviews

Having just been left stunned by this episode, it is really hard to write a review about it. It literally blows you out of the water. When the one big question of Barnie's wife is finally answered, it happens just after making you believe in something completely different. Seeing that last minute leaves you with such a happy feeling inside, its hard to find words. As a huge fan of this series, I already knew what would be the end of it, but seeing it for real and after being confused so much is a real awesome feeling. Also, for the first time this season, Ted finally gets a real love story and boy, is it a big one. And thats the one thing I can say about this episode: You've got to watch it to believe it. But as a fair warning: It will leave you so hungry for more, the time until the next season will be unbearable.

40 of 58 people found this review helpful.  Was this review helpful to you?

Message Boards

Recent Posts
One thing that bugged me is that Jessie_C
Which actress did you want to play the mother? addiekeats
Season 9 - worst ever!!!!!! jmiew
Nina Tassler, CBS still interested in HIMYD glawz
Ripping on New Jersey Polygraph
Ted's dating history cathy_the_grey
Discuss The Magician's Code: Part 2 (2012) on the IMDb message boards »

Contribute to This Page

Create a character page for: