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,602 users  
Reviews: 3 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

Watch Now

$0.00 with Prime Instant Video

User Lists

Related lists from IMDb users

a list of 21 titles
created 23 Jan 2011
list image
a list of 53 titles
created 26 Feb 2013
a list of 7431 titles
created 27 Jun 2013
a list of 10 titles
created 22 Sep 2013
a list of 38 titles
created 8 months 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 »


Guard #1: [At the JFK passenger terminal, Barney and Quinn are asked about the luggage]
[sees box in bag]
Guard #1: What's that?
Quinn Garvey: Yeah, what is that?
Barney Stinson: It's a magic box. You see, I'm something of a magician.
Guard #1: Open the box, sir.
Barney Stinson: [laughs] I can't do that.
[K9 barks]
Guard #1: Sir, are there drugs in that box?
Barney Stinson: Oh no, he's probably barking because of the explosives.
See more »


References American Psycho (2000) See more »


Hey Beautiful
Written by The Solids
Performed by The Solids
See more »

Frequently Asked Questions

This FAQ is empty. Add the first question.

User Reviews

Seri - wait for it - ously?
14 May 2012 | by See all my reviews

This episode was a giant step back for the series. After treading water for seasons, they finally committed to moving the story forward with the Season 6 finale and the Season 7 episode "Trilogy Time." Then the big "surprise" at the end of Season 7 was a re-commitment to two relationships we were told very early on will not persist. What's the point of tonight's episode? Trilogy Time and the revelation of Ted having a daughter in 3 years would have been a more fitting season finale.

Instead where do we stand? An entire season (or more) of learning how Barney and Robin getting back together, knowing all along she winds up with Don, and Ted and Victoria getting back together while we know the whole time that she's not the girl with the yellow umbrella (pending a Lost-level cop out where she somehow was in his class and it never came up while they dated).

HIMYM makes me laugh, and consistently is full of great acting and comedy. But this episode eliminated a whole lot of the good will the writers still have with me, as all I can walk away from it thinking is... "Why bother?"

27 of 43 people found this review helpful.  Was this review helpful to you?

Message Boards

Recent Posts
The absolute best thing about the ending of HIMYM rainybeet
Barney - am I the only one... hmguk90
Why did Ted wait so long to get married? t_fap
The ending is the same as... gunwing
I'm just gonna come out and say it... jedi_knight05
Props to Cristin Milioti dhinsd
Discuss The Magician's Code: Part 2 (2012) on the IMDb message boards »

Contribute to This Page

Create a character page for: