![]() So it’s really nice to listen to the cast chat about their time on the show and relive one of my favorite watches while I’m doing the dishes. I was a huge fan of Scrubs when it came out and it’s awesome to see the cast and creators going on to make even more brilliant TV recently like Ted Lasso. Most of the podcasts I listen to are either work related, informational or news.īut if I need to unplug my brain a little I always reach for the Scrubs rewatch Podcast “Fake Doctors, Real Friends”. environ ) print ( filled_string ) # for me prints "Hello jacob your uuid is a27fcecd-1" 4. Import os import uuid # Imagine the user configured this string somewhere user_string = "Hello " # Now let's populate the user string with all sorts of useful optional variables filled_string = user_string. If a kwarg passed to format isn’t used in the template it will quietly ignore it. ![]() ![]() We can then populate user provided strings with a whole array of useful things like a generated uuid or even the whole set of environment variables. While f-strings are my preferred way of templating strings these days the older format style is great for creating a template string in one place and populating it in another. I often do this by leveraging Python’s str.format(). We may want to generate a uuid or substitute in environment variables. Sometimes I want to allow a user to configure a template for a string and then populate it from various sources. Code snippet: Expanding environment variables in arbitrary Python strings I want my blog to be a representation of myself (the teal colour used throughout is the same as the wall in my office) so I thought why not use the same code theme. I use Dracula day-to-day in VS Code and Iterm2 for terminal colours and syntax highlighting. I continually tweak how my blog looks, and my latest change was switching the syntax highlighter theme to Dracula. My blog now uses the Dracula theme for syntax highlighting It has taken many hours of engineering effort to even make this post possible, so a huge thank you to everyone both within RAPIDS and also in the Dask community who came together to make this happen. ![]() At the start of 2022 I set out to ensure that RAPIDS integrates seamlessly with KubeFlow and as a result ended up completely overhauling how Dask deployments work on Kubernetes. This post was particularly exciting because it marks the culmination of months of engineering work. Last week a blog post I wrote about running RAPIDS on Kubeflow was published on the NVIDIA Developer Blog. Blog: Accelerating ETL on KubeFlow with RAPIDS ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |