Use Watson Studio to visualize query results from Watson Discovery News

Get the code


Is it possible to get a pulse of the overall sentiment of something using news articles? The answer is yes. Using Watson services such as Watson Studio, Watson Discovery, and Watson Discovery News, you can get insight from unstructured data that you can then query. This code pattern shows you how to use Watson Studio to visualize query results from Watson Discovery News.


Watson Discovery News is a service where Watson will automatically add news articles to a collection of documents that you can then query. New documents are added every day, which is great because it removes the legwork of having to gather these sources yourself. It lets you simply work on extracting value from the data. You can use this data on your own without having to build a sophisticated scraper and deploying your own Elasticsearch (or another search engine). Using data science and creating visualizations allows you to uncover anomalies in the data and create alerts when key events occur.

This code pattern uses Watson Studio and Watson Discovery News to query articles written about Bitcoin and visualize the sentiment of the articles. The pattern can be a baseline for integrating Watson Discovery into your own application.

After completing this code pattern, you will understand how to:

  • Use Watson Studio for data science projects
  • Build a data pipeline using Watson Discovery News
  • Analyze sentiment data on a topic



  1. Sign up for IBM Cloud.
  2. Create an instance of Watson Discovery.
  3. Create a new Watson Studio project with Jupyter Notebook.
  4. Visualize the output.


Ready to put this code pattern to use? Complete details on how to get started running and using this application are in the README.