Jessica Guynn

USA TODAY

SAN FRANCISCO — Google is hoping the stereotype-busting message in the new film Hidden Figures will encourage more women and people of color to study computer science.

The film, which hit theaters Friday, tells the true story of African-American mathematicians Katherine Johnson (Taraji P. Henson), Dorothy Vaughan (Octavia Spencer) and Mary Jackson (Janelle Monáe) who overcame racism to play critical roles in NASA's space program in the Jim Crow South of the early 1960s. It's adapted from Margot Lee Shetterly's book by the same title. The women in the film are called computers for calculating the math that launches shuttles and rockets into space.

Google is showing Hidden Figures to students across the country and it has created a coding project around the film's uplifting message to change popular perception about what computer science is and what computer scientists look like.

Google goes to Oakland, Harlem to reach black, Latino youth

"It's such a phenomenal story of these incredible women," said Lauren Baum who works for Google's Made with Code program that teaches basic coding to girls. "When you see it and when you see their energy and their passion and the fact that they actually were the people behind launching John Glenn into space, that is something that students everywhere will really aspire to."

Google helps Hollywood boost girls-who-code image

Women and people of color are frequently "hidden figures" in the tech industry, too. The film is being released as Silicon Valley faces growing pressure to bring greater diversity to the ranks of those building technology and working for tech companies. Seven out of 10 Google employees are men, the status quo for major Silicon Valley technology companies. Also largely unrepresented in the tech sector are African Americans and Latinos, particularly in technical and leadership roles.

That's a pressing problem for Google and the industry at large. Latino and African-American buying power is on the rise and Silicon Valley companies have ambitions that lap the globe. Having women and underrepresented minorities brainstorming and building, not just using, tech products is quickly becoming a business imperative.

$50 million Google coding initiative targets girls

Gender and racial stereotypes often deter women and people of color from studying computer science and from pursuing careers in the tech industry, Google says. One of the problems: The perception that coding is the province of white nerdy men. Google has worked with Hollywood to change how computer science is portrayed on television and in film. The Internet giant has also funded research into the structural and social barriers that keep underrepresented students from studying computer science.

Using a basic coding program introduced Friday, students can create personalized statements of equality inspired by Hidden Figures such as "genius has no race" and "I believe in equality." In partnership with AMC movie theaters and local school districts, Google is hosting viewing parties in Austin, Atlanta, Boston and New York over the next couple of weeks. At the parties, students can watch and discuss the film and try their hand at coding.

Review: 'Hidden Figures' performances, other elements add up

The Alfred P. Sloan Foundation, which funds scientific research and projects that strengthen public understanding of science, was instrumental in bringing the original story to light through a grant that helped author Shetterly complete the book the movie was based on.

The film also won the 2016 Sloan Science in Cinema prize for its depiction of science in a narrative feature film. The award was presented at a screening sponsored by the foundation and the San Francisco Film Society at San Francisco's Castro Theatre in December.

The screening, of which Google was also a sponsor, was attended by students from the coding groups Black Girls Code and Hack the Hood. After the screening, Spencer, NASA engineer Tracy Drain and director Theodore Melfi discussed the importance of diversity in computer science.

At Google's Atlanta office, Monáe and Pharrell Williams, one of the film's producers, addressed 50 students from historically black colleges and universities. Google has also hosted screenings for students and employees in New York, Los Angeles and Chicago.

Google: Race, gender gaps persist in computer science education

At the recent screening of Hidden Figures in San Francisco, Baum said she witnessed firsthand how the on-screen message resonated with young people.

"You could just see their eyes lighting up just seeing someone who looks like them on the screen, someone they have never heard of doing something that they have heard of: John Glenn's space mission," she said.

Read more USA TODAY coverage of diversity and inclusion in tech here.