Auto-generate scenarios from Wikipedia tables

[1]:
from edsl import ScenarioList

Call the from_wikipedia method on a ScenarioList and pass (i) the URL for the Wikipedia page containing the table and (ii) the number of the table on the page (an integer starting at 0 that can be omitted if there is only 1 table on the page). For example, here we create scenarios for the 4th table at the page about movies of the 1990s:

[2]:
scenarios = ScenarioList.from_wikipedia("https://en.wikipedia.org/wiki/1990s_in_film", 3)
[3]:
scenarios.print(format="rich")
┏━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━┳━━━━━━┳━━━━━┓
┃                                                                                                        Ref ┃
┃ Rank  Title                                Studios                              Worldwide gross  Year  .   ┃
┡━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━╇━━━━━━╇━━━━━┩
│ 1     Titanic                              Paramount Pictures/20th Century Fox  $1,843,201,268   1997      │
├──────┼─────────────────────────────────────┼─────────────────────────────────────┼─────────────────┼──────┼─────┤
│ 2     Star Wars: Episode I – The Phantom   20th Century Fox                     $924,317,558     1999      │
│       Menace                                                                                               │
├──────┼─────────────────────────────────────┼─────────────────────────────────────┼─────────────────┼──────┼─────┤
│ 3     Jurassic Park                        Universal Pictures                   $914,691,118     1993      │
├──────┼─────────────────────────────────────┼─────────────────────────────────────┼─────────────────┼──────┼─────┤
│ 4     Independence Day                     20th Century Fox                     $817,400,891     1996      │
├──────┼─────────────────────────────────────┼─────────────────────────────────────┼─────────────────┼──────┼─────┤
│ 5     The Lion King                        Walt Disney Studios                  $763,455,561     1994      │
├──────┼─────────────────────────────────────┼─────────────────────────────────────┼─────────────────┼──────┼─────┤
│ 6     Forrest Gump                         Paramount Pictures                   $677,387,716     1994      │
├──────┼─────────────────────────────────────┼─────────────────────────────────────┼─────────────────┼──────┼─────┤
│ 7     The Sixth Sense                      Walt Disney Studios                  $672,806,292     1999      │
├──────┼─────────────────────────────────────┼─────────────────────────────────────┼─────────────────┼──────┼─────┤
│ 8     The Lost World: Jurassic Park        Universal Pictures                   $618,638,999     1997      │
├──────┼─────────────────────────────────────┼─────────────────────────────────────┼─────────────────┼──────┼─────┤
│ 9     Men in Black                         Sony Pictures/Columbia Pictures      $589,390,539     1997      │
├──────┼─────────────────────────────────────┼─────────────────────────────────────┼─────────────────┼──────┼─────┤
│ 10    Armageddon                           Walt Disney Studios                  $553,709,788     1998      │
├──────┼─────────────────────────────────────┼─────────────────────────────────────┼─────────────────┼──────┼─────┤
│ 11    Terminator 2: Judgment Day           TriStar Pictures                     $519,843,345     1991      │
├──────┼─────────────────────────────────────┼─────────────────────────────────────┼─────────────────┼──────┼─────┤
│ 12    Ghost                                Paramount Pictures                   $505,702,588     1990      │
├──────┼─────────────────────────────────────┼─────────────────────────────────────┼─────────────────┼──────┼─────┤
│ 13    Aladdin                              Walt Disney Studios                  $504,050,219     1992      │
├──────┼─────────────────────────────────────┼─────────────────────────────────────┼─────────────────┼──────┼─────┤
│ 14    Twister                              Warner Bros./Universal Pictures      $494,471,524     1996      │
├──────┼─────────────────────────────────────┼─────────────────────────────────────┼─────────────────┼──────┼─────┤
│ 15    Toy Story 2                          Walt Disney Studios                  $485,015,179     1999      │
├──────┼─────────────────────────────────────┼─────────────────────────────────────┼─────────────────┼──────┼─────┤
│ 16    Saving Private Ryan                  DreamWorks Pictures/Paramount        $481,840,909     1998      │
│                                            Pictures                                                        │
├──────┼─────────────────────────────────────┼─────────────────────────────────────┼─────────────────┼──────┼─────┤
│ 17    Home Alone                           20th Century Fox                     $476,684,675     1990      │
├──────┼─────────────────────────────────────┼─────────────────────────────────────┼─────────────────┼──────┼─────┤
│ 18    The Matrix                           Warner Bros.                         $463,517,383     1999      │
├──────┼─────────────────────────────────────┼─────────────────────────────────────┼─────────────────┼──────┼─────┤
│ 19    Pretty Woman                         Walt Disney Studios                  $463,406,268     1990      │
├──────┼─────────────────────────────────────┼─────────────────────────────────────┼─────────────────┼──────┼─────┤
│ 20    Mission: Impossible                  Paramount Pictures                   $457,696,359     1996      │
├──────┼─────────────────────────────────────┼─────────────────────────────────────┼─────────────────┼──────┼─────┤
│ 21    Tarzan                               Walt Disney Studios                  $448,191,819     1999      │
├──────┼─────────────────────────────────────┼─────────────────────────────────────┼─────────────────┼──────┼─────┤
│ 22    Mrs. Doubtfire                       20th Century Fox                     $441,286,195     1993      │
├──────┼─────────────────────────────────────┼─────────────────────────────────────┼─────────────────┼──────┼─────┤
│ 23    Dances with Wolves                   Orion Pictures                       $424,208,848     1990      │
├──────┼─────────────────────────────────────┼─────────────────────────────────────┼─────────────────┼──────┼─────┤
│ 24    The Mummy                            Universal Pictures                   $415,933,406     1999      │
├──────┼─────────────────────────────────────┼─────────────────────────────────────┼─────────────────┼──────┼─────┤
│ 25    The Bodyguard                        Warner Bros.                         $411,006,740     1992      │
├──────┼─────────────────────────────────────┼─────────────────────────────────────┼─────────────────┼──────┼─────┤
│ 26    Robin Hood: Prince of Thieves        Warner Bros.                         $390,493,908     1991      │
├──────┼─────────────────────────────────────┼─────────────────────────────────────┼─────────────────┼──────┼─────┤
│ 27    Godzilla                             TriStar Pictures                     $379,014,294     1998      │
├──────┼─────────────────────────────────────┼─────────────────────────────────────┼─────────────────┼──────┼─────┤
│ 28    True Lies                            20th Century Fox                     $378,882,411     1994      │
├──────┼─────────────────────────────────────┼─────────────────────────────────────┼─────────────────┼──────┼─────┤
│ 29    Toy Story                            Walt Disney Studios                  $373,554,033     1995      │
├──────┼─────────────────────────────────────┼─────────────────────────────────────┼─────────────────┼──────┼─────┤
│ 30    There's Something About Mary         20th Century Fox                     $369,884,651     1998      │
├──────┼─────────────────────────────────────┼─────────────────────────────────────┼─────────────────┼──────┼─────┤
│ 31    The Fugitive                         Warner Bros.                         $368,875,760     1993      │
├──────┼─────────────────────────────────────┼─────────────────────────────────────┼─────────────────┼──────┼─────┤
│ 32    Die Hard with a Vengeance            20th Century Fox/Cinergi Pictures    $366,101,666     1995      │
├──────┼─────────────────────────────────────┼─────────────────────────────────────┼─────────────────┼──────┼─────┤
│ 33    Notting Hill                         PolyGram Filmed Entertainment        $363,889,678     1999      │
├──────┼─────────────────────────────────────┼─────────────────────────────────────┼─────────────────┼──────┼─────┤
│ 34    A Bug's Life                         Walt Disney Studios                  $363,398,565     1998      │
├──────┼─────────────────────────────────────┼─────────────────────────────────────┼─────────────────┼──────┼─────┤
│ 35    The World Is Not Enough              Metro-Goldwyn-Mayer Pictures         $361,832,400     1999      │
├──────┼─────────────────────────────────────┼─────────────────────────────────────┼─────────────────┼──────┼─────┤
│ 36    Home Alone 2: Lost in New York       20th Century Fox                     $358,994,850     1992      │
├──────┼─────────────────────────────────────┼─────────────────────────────────────┼─────────────────┼──────┼─────┤
│ 37    American Beauty                      DreamWorks Pictures                  $356,296,601     1999      │
├──────┼─────────────────────────────────────┼─────────────────────────────────────┼─────────────────┼──────┼─────┤
│ 38    Apollo 13                            Universal Pictures/Imagine           $355,237,933     1995      │
│                                            Entertainment                                                   │
├──────┼─────────────────────────────────────┼─────────────────────────────────────┼─────────────────┼──────┼─────┤
│ 39    Basic Instinct                       TriStar Pictures                     $352,927,224     1992      │
├──────┼─────────────────────────────────────┼─────────────────────────────────────┼─────────────────┼──────┼─────┤
│ 40    GoldenEye                            MGM/United Artists                   $352,194,034     1995      │
├──────┼─────────────────────────────────────┼─────────────────────────────────────┼─────────────────┼──────┼─────┤
│ 41    The Mask                             New Line Cinema                      $351,583,407     1994      │
├──────┼─────────────────────────────────────┼─────────────────────────────────────┼─────────────────┼──────┼─────┤
│ 42    Speed                                20th Century Fox                     $350,448,145     1994      │
├──────┼─────────────────────────────────────┼─────────────────────────────────────┼─────────────────┼──────┼─────┤
│ 43    Deep Impact                          Paramount Pictures/DreamWorks        $349,464,664     1998      │
│                                            Pictures                                                        │
├──────┼─────────────────────────────────────┼─────────────────────────────────────┼─────────────────┼──────┼─────┤
│ 44    Beauty and the Beast                 Walt Disney Studios                  $346,317,207     1991      │
├──────┼─────────────────────────────────────┼─────────────────────────────────────┼─────────────────┼──────┼─────┤
│ 45    Pocahontas                           Walt Disney Studios                  $346,079,773     1995      │
├──────┼─────────────────────────────────────┼─────────────────────────────────────┼─────────────────┼──────┼─────┤
│ 46    The Flintstones                      Universal Pictures                   $341,631,208     1994      │
├──────┼─────────────────────────────────────┼─────────────────────────────────────┼─────────────────┼──────┼─────┤
│ 47    Batman Forever                       Warner Bros.                         $336,529,144     1995      │
├──────┼─────────────────────────────────────┼─────────────────────────────────────┼─────────────────┼──────┼─────┤
│ 48    The Rock                             Walt Disney Studios                  $335,062,621     1996      │
├──────┼─────────────────────────────────────┼─────────────────────────────────────┼─────────────────┼──────┼─────┤
│ 49    Tomorrow Never Dies                  MGM/United Artists                   $333,011,068     1997      │
├──────┼─────────────────────────────────────┼─────────────────────────────────────┼─────────────────┼──────┼─────┤
│ 50    Seven                                New Line Cinema                      $327,311,859     1995      │
└──────┴─────────────────────────────────────┴─────────────────────────────────────┴─────────────────┴──────┴─────┘
[4]:
scenarios.parameters
[4]:
{'Rank', 'Ref.', 'Studios', 'Title', 'Worldwide gross', 'Year'}
[5]:
from edsl import QuestionList

q_leads = QuestionList(
    question_name = "leads",
    question_text = "Who are the lead actors or actresses in {{ Title }}?"
)

results = q_leads.by(scenarios).run()

(results
 .sort_by("Title")
 .select("Title", "leads")
 .print(format="rich")
)
┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓
┃ scenario                                   answer                                                              ┃
┃ .Title                                     .leads                                                              ┃
┡━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┩
│ A Bug's Life                               ['Dave Foley', 'Kevin Spacey', 'Julia Louis-Dreyfus', 'Hayden       │
│                                            Panettiere', 'Phyllis Diller', 'Richard Kind', 'David Hyde Pierce'] │
├───────────────────────────────────────────┼─────────────────────────────────────────────────────────────────────┤
│ Aladdin                                    ['Mena Massoud', 'Naomi Scott', 'Will Smith']                       │
├───────────────────────────────────────────┼─────────────────────────────────────────────────────────────────────┤
│ American Beauty                            ['Kevin Spacey', 'Annette Bening', 'Thora Birch', 'Mena Suvari',    │
│                                            'Wes Bentley', 'Chris Cooper']                                      │
├───────────────────────────────────────────┼─────────────────────────────────────────────────────────────────────┤
│ Apollo 13                                  ['Tom Hanks', 'Kevin Bacon', 'Bill Paxton']                         │
├───────────────────────────────────────────┼─────────────────────────────────────────────────────────────────────┤
│ Armageddon                                 ['Bruce Willis', 'Billy Bob Thornton', 'Liv Tyler', 'Ben Affleck']  │
├───────────────────────────────────────────┼─────────────────────────────────────────────────────────────────────┤
│ Basic Instinct                             ['Michael Douglas', 'Sharon Stone']                                 │
├───────────────────────────────────────────┼─────────────────────────────────────────────────────────────────────┤
│ Batman Forever                             ['Val Kilmer', 'Tommy Lee Jones', 'Jim Carrey', 'Nicole Kidman',    │
│                                            "Chris O'Donnell"]                                                  │
├───────────────────────────────────────────┼─────────────────────────────────────────────────────────────────────┤
│ Beauty and the Beast                       ['Emma Watson', 'Dan Stevens', 'Luke Evans', 'Kevin Kline', 'Josh   │
│                                            Gad']                                                               │
├───────────────────────────────────────────┼─────────────────────────────────────────────────────────────────────┤
│ Dances with Wolves                         ['Kevin Costner', 'Mary McDonnell', 'Graham Greene', 'Rodney A.     │
│                                            Grant']                                                             │
├───────────────────────────────────────────┼─────────────────────────────────────────────────────────────────────┤
│ Deep Impact                                ['Téa Leoni', 'Morgan Freeman', 'Elijah Wood', 'Robert Duvall']     │
├───────────────────────────────────────────┼─────────────────────────────────────────────────────────────────────┤
│ Die Hard with a Vengeance                  ['Bruce Willis', 'Samuel L. Jackson', 'Jeremy Irons']               │
├───────────────────────────────────────────┼─────────────────────────────────────────────────────────────────────┤
│ Forrest Gump                               ['Tom Hanks', 'Robin Wright', 'Gary Sinise', 'Mykelti Williamson',  │
│                                            'Sally Field']                                                      │
├───────────────────────────────────────────┼─────────────────────────────────────────────────────────────────────┤
│ Ghost                                      ['Patrick Swayze', 'Demi Moore', 'Whoopi Goldberg']                 │
├───────────────────────────────────────────┼─────────────────────────────────────────────────────────────────────┤
│ Godzilla                                   ['Matthew Broderick', 'Jean Reno', 'Bryan Cranston', 'Aaron         │
│                                            Taylor-Johnson', 'Elizabeth Olsen', 'Kyle Chandler', 'Vera          │
│                                            Farmiga', 'Millie Bobby Brown']                                     │
├───────────────────────────────────────────┼─────────────────────────────────────────────────────────────────────┤
│ GoldenEye                                  ['Pierce Brosnan', 'Sean Bean', 'Izabella Scorupco', 'Famke         │
│                                            Janssen']                                                           │
├───────────────────────────────────────────┼─────────────────────────────────────────────────────────────────────┤
│ Home Alone                                 ['Macaulay Culkin', 'Joe Pesci', 'Daniel Stern', "Catherine         │
│                                            O'Hara", 'John Heard']                                              │
├───────────────────────────────────────────┼─────────────────────────────────────────────────────────────────────┤
│ Home Alone 2: Lost in New York             ['Macaulay Culkin', 'Joe Pesci', 'Daniel Stern', "Catherine         │
│                                            O'Hara", 'John Heard']                                              │
├───────────────────────────────────────────┼─────────────────────────────────────────────────────────────────────┤
│ Independence Day                           ['Will Smith', 'Bill Pullman', 'Jeff Goldblum']                     │
├───────────────────────────────────────────┼─────────────────────────────────────────────────────────────────────┤
│ Jurassic Park                              ['Sam Neill', 'Laura Dern', 'Jeff Goldblum', 'Richard               │
│                                            Attenborough']                                                      │
├───────────────────────────────────────────┼─────────────────────────────────────────────────────────────────────┤
│ Men in Black                               ['Tommy Lee Jones', 'Will Smith']                                   │
├───────────────────────────────────────────┼─────────────────────────────────────────────────────────────────────┤
│ Mission: Impossible                        ['Tom Cruise', 'Ving Rhames', 'Simon Pegg', 'Rebecca Ferguson',     │
│                                            'Jeremy Renner']                                                    │
├───────────────────────────────────────────┼─────────────────────────────────────────────────────────────────────┤
│ Mrs. Doubtfire                             ['Robin Williams', 'Sally Field', 'Pierce Brosnan', 'Lisa Jakub',   │
│                                            'Matthew Lawrence', 'Mara Wilson']                                  │
├───────────────────────────────────────────┼─────────────────────────────────────────────────────────────────────┤
│ Notting Hill                               ['Julia Roberts', 'Hugh Grant']                                     │
├───────────────────────────────────────────┼─────────────────────────────────────────────────────────────────────┤
│ Pocahontas                                 ['Irene Bedard', 'Mel Gibson', 'Judy Kuhn', 'David Ogden Stiers',   │
│                                            'Russell Means', 'Christian Bale']                                  │
├───────────────────────────────────────────┼─────────────────────────────────────────────────────────────────────┤
│ Pretty Woman                               ['Richard Gere', 'Julia Roberts']                                   │
├───────────────────────────────────────────┼─────────────────────────────────────────────────────────────────────┤
│ Robin Hood: Prince of Thieves              ['Kevin Costner', 'Morgan Freeman', 'Mary Elizabeth Mastrantonio',  │
│                                            'Christian Slater', 'Alan Rickman']                                 │
├───────────────────────────────────────────┼─────────────────────────────────────────────────────────────────────┤
│ Saving Private Ryan                        ['Tom Hanks', 'Matt Damon', 'Tom Sizemore', 'Edward Burns', 'Barry  │
│                                            Pepper', 'Adam Goldberg', 'Vin Diesel', 'Giovanni Ribisi', 'Jeremy  │
│                                            Davies']                                                            │
├───────────────────────────────────────────┼─────────────────────────────────────────────────────────────────────┤
│ Seven                                      ['Brad Pitt', 'Morgan Freeman', 'Gwyneth Paltrow']                  │
├───────────────────────────────────────────┼─────────────────────────────────────────────────────────────────────┤
│ Speed                                      ['Keanu Reeves', 'Sandra Bullock', 'Dennis Hopper']                 │
├───────────────────────────────────────────┼─────────────────────────────────────────────────────────────────────┤
│ Star Wars: Episode I – The Phantom Menace  ['Liam Neeson', 'Ewan McGregor', 'Natalie Portman', 'Jake Lloyd']   │
├───────────────────────────────────────────┼─────────────────────────────────────────────────────────────────────┤
│ Tarzan                                     ['Johnny Weissmuller', "Maureen O'Sullivan"]                        │
├───────────────────────────────────────────┼─────────────────────────────────────────────────────────────────────┤
│ Terminator 2: Judgment Day                 ['Arnold Schwarzenegger', 'Linda Hamilton', 'Edward Furlong',       │
│                                            'Robert Patrick']                                                   │
├───────────────────────────────────────────┼─────────────────────────────────────────────────────────────────────┤
│ The Bodyguard                              ['Kevin Costner', 'Whitney Houston']                                │
├───────────────────────────────────────────┼─────────────────────────────────────────────────────────────────────┤
│ The Flintstones                            ['John Goodman', 'Elizabeth Perkins', 'Rick Moranis', "Rosie        │
│                                            O'Donnell"]                                                         │
├───────────────────────────────────────────┼─────────────────────────────────────────────────────────────────────┤
│ The Fugitive                               ['Harrison Ford', 'Tommy Lee Jones']                                │
├───────────────────────────────────────────┼─────────────────────────────────────────────────────────────────────┤
│ The Lion King                              ['Matthew Broderick', 'James Earl Jones', 'Jeremy Irons', 'Moira    │
│                                            Kelly', 'Nathan Lane', 'Ernie Sabella', 'Rowan Atkinson', 'Whoopi   │
│                                            Goldberg']                                                          │
├───────────────────────────────────────────┼─────────────────────────────────────────────────────────────────────┤
│ The Lost World: Jurassic Park              ['Jeff Goldblum', 'Julianne Moore', 'Pete Postlethwaite']           │
├───────────────────────────────────────────┼─────────────────────────────────────────────────────────────────────┤
│ The Mask                                   ['Jim Carrey', 'Cameron Diaz']                                      │
├───────────────────────────────────────────┼─────────────────────────────────────────────────────────────────────┤
│ The Matrix                                 ['Keanu Reeves', 'Laurence Fishburne', 'Carrie-Anne Moss']          │
├───────────────────────────────────────────┼─────────────────────────────────────────────────────────────────────┤
│ The Mummy                                  ['Brendan Fraser', 'Rachel Weisz', 'John Hannah', 'Arnold Vosloo']  │
├───────────────────────────────────────────┼─────────────────────────────────────────────────────────────────────┤
│ The Rock                                   ['Sean Connery', 'Nicolas Cage', 'Ed Harris']                       │
├───────────────────────────────────────────┼─────────────────────────────────────────────────────────────────────┤
│ The Sixth Sense                            ['Bruce Willis', 'Haley Joel Osment', 'Toni Collette', 'Olivia      │
│                                            Williams']                                                          │
├───────────────────────────────────────────┼─────────────────────────────────────────────────────────────────────┤
│ The World Is Not Enough                    ['Pierce Brosnan', 'Sophie Marceau', 'Denise Richards', 'Robert     │
│                                            Carlyle']                                                           │
├───────────────────────────────────────────┼─────────────────────────────────────────────────────────────────────┤
│ There's Something About Mary               ['Cameron Diaz', 'Ben Stiller', 'Matt Dillon']                      │
├───────────────────────────────────────────┼─────────────────────────────────────────────────────────────────────┤
│ Titanic                                    ['Leonardo DiCaprio', 'Kate Winslet']                               │
├───────────────────────────────────────────┼─────────────────────────────────────────────────────────────────────┤
│ Tomorrow Never Dies                        ['Pierce Brosnan', 'Michelle Yeoh', 'Jonathan Pryce', 'Teri         │
│                                            Hatcher']                                                           │
├───────────────────────────────────────────┼─────────────────────────────────────────────────────────────────────┤
│ Toy Story                                  ['Tom Hanks', 'Tim Allen']                                          │
├───────────────────────────────────────────┼─────────────────────────────────────────────────────────────────────┤
│ Toy Story 2                                ['Tom Hanks', 'Tim Allen', 'Joan Cusack']                           │
├───────────────────────────────────────────┼─────────────────────────────────────────────────────────────────────┤
│ True Lies                                  ['Arnold Schwarzenegger', 'Jamie Lee Curtis']                       │
├───────────────────────────────────────────┼─────────────────────────────────────────────────────────────────────┤
│ Twister                                    ['Helen Hunt', 'Bill Paxton']                                       │
└───────────────────────────────────────────┴─────────────────────────────────────────────────────────────────────┘

Posting to the Coop

[6]:
scenarios.push(description = "Wikipedia: 1990s in film - List of worldwide highest-grossing films", visibility = "public")
[6]:
{'description': 'Wikipedia: 1990s in film - List of worldwide highest-grossing films',
 'object_type': 'scenario_list',
 'url': 'https://www.expectedparrot.com/content/c5cd9e64-efcf-4703-b7e0-ebf135f1bd93',
 'uuid': 'c5cd9e64-efcf-4703-b7e0-ebf135f1bd93',
 'version': '0.1.33.dev1',
 'visibility': 'public'}
[7]:
from edsl import Notebook
[8]:
n = Notebook(path = "scenario_list_wikipedia.ipynb")
[9]:
n.push(description = "Example code for generating scenarios from Wikipedia tables", visibility = "public")
[9]:
{'description': 'Example code for generating scenarios from Wikipedia tables',
 'object_type': 'notebook',
 'url': 'https://www.expectedparrot.com/content/6e62c759-ed1c-4b18-9b50-b5753c54baff',
 'uuid': '6e62c759-ed1c-4b18-9b50-b5753c54baff',
 'version': '0.1.33.dev1',
 'visibility': 'public'}

Updating an object at the Coop

[10]:
n = Notebook(path = "scenario_list_wikipedia.ipynb")
[11]:
n.patch(uuid = "6e62c759-ed1c-4b18-9b50-b5753c54baff", value = n)
[11]:
{'status': 'success'}