- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-29-2025 09:13 PM
Hi Alex,
You're definitely not alone — this is a common issue when using the Spotify API in environments like Databricks or Jupyter Notebooks, where user input through the console (like typing in a prompt) isn't supported.
What's happening is that the authentication process is trying to ask you for input, such as pasting in a URL or login info, but Databricks doesn’t allow that kind of interaction. That’s why you’re seeing the StdinNotImplementedError.
Here’s what you can do:
If you're trying to access your personal Spotify data (like playlists, saved tracks, or recently played songs), you’ll need to do the authentication on your local machine where input prompts and browser login work normally. Once you get the access token there, you can copy it and use it in Databricks.
If you only need public data (like artist info, album details, or general song metadata), you can use a simpler method called the Client Credentials Flow. This doesn't require user login and works well in Databricks — but it won’t give you access to your personal listening data.
In short: Databricks can’t handle login prompts, so you either need to do the login part outside of it, or stick to public data.
Let me know what kind of Spotify Premium data you're aiming to analyze, and I can help you choose the best route!