How I Met Your Mother: Season 7, Episode 23

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

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

Ted and Robin take care of Lily when she goes into labor because Marshall is drunk and stuck in Atlantic City with Barney.



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

Watch Now

$0.00 with Prime Instant Video

Editors' Spotlight

Sundance 2015

Watch our IMDb & AIV Sundance Studio Interviews with Keith Simanton

User Lists

Related lists from IMDb users

a list of 447 titles
created 02 Jan 2012
a list of 24 titles
created 21 Aug 2012
a list of 31 titles
created 22 May 2013
a list of 27 titles
created 01 Dec 2013
a list of 24 titles
created 6 months ago

Related Items

Connect with IMDb

Share this Rating

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

The Magician's Code: Part 1 (14 May 2012) on IMDb 8.5/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 | 159 of 208 Episodes | Next Episode »





Episode cast overview, first billed only:
Cab Driver
Paul Eliopoulos ...
Homeless Man
Elliot Goldwag ...


Lily has gone into labor, and Marshall is no where in sight. As Lily is feeling the physical pain associated with the contractions, she requires the assistance of Ted and Robin to keep her mind on other things by telling her stories of their past, whether she's heard the stories before or not. One of the longer but simpler stories involves the mysterious door at MacLaren's which one by one each walks through to experience the wonder on the other side. But as she makes it into the delivery room about to give birth, Marshall is still no where to be seen, although someone in her life is there, he who she may not want to see at this specific time. Meanwhile, a drunk Marshall is stranded in Atlantic City with Barney. They try one tactic after another to make their way back to New York City, most of those tactics surrounding the motorcycle to be won through one of the slot machines. As they eventually do manage to secure transportation, their ultimate destination is outside of their control... Written by Huggo

Plot Summary | Add 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 Stinson: [Barney tries to ask the bus driver to drive to the hospital where Lily is giving birth] Sir, this man is having a baby tonight. Instead of going to St Marcus Hospital, we're going to Buffalo - and I've seen women from there, the city's aptly named. Look, I'm a screw-up; I'm having something special with this girl Quinn and I ruined it. But this guy
[gestures to Marshall]
Barney Stinson: , he's done everything right. He's been loving and devoting since he was 18 years old. There are a few truly great people on ...
See more »


References The Terminator (1984) See more »


You Were Born
Written by Cloud Cult
Performed by Cloud Cult
See more »

Frequently Asked Questions

This FAQ is empty. Add the first question.

User Reviews

no motorcycles on the casino floor
28 July 2013 | by (India) – See all my reviews

lily is in labor but marshal is stuck with barney in Atlantic city. Ted and robin to the rescue. Ted and robin tell lily stories of their gang as to divert her attention from the pain. Marshall struggles to get to the hospital because of him being drunk to the point of sounding like the Yoda. Marshall makes a deal with barney that he would get him to his child's birth or die trying if he names the child's middle name waitforit. Marshall gets to attend his child's birth whom he names Marvin waitforit Erikson. robin and Ted coinclie their diffrences so that they can welcome Marvin as friends into the new world. it was an awesome episode full with laughs and a new member to the himym family that is Marvin the above summary title is a secret which can only be revealed when you see the episode yourself

0 of 0 people found this review helpful.  Was this review helpful to you?

Message Boards

Recent Posts
OK, which episode was it...? sidmsdw
Who do you hate the most Lily or Robin monsieurnikhil123
The absolute best thing about the ending of HIMYM rainybeet
S5E18- Say Cheese: Who's side are you on, Ted's or Lily's? Leesha92
" believed that? I like you!" ellieplusplus
Why did Ted wait so long to get married? t_fap
Discuss The Magician's Code: Part 1 (2012) on the IMDb message boards »

Contribute to This Page

Create a character page for: