Skip to content

Instantly share code, notes, and snippets.

View amit1rrr's full-sized avatar

Amit Rathi amit1rrr

View GitHub Profile
@amit1rrr
amit1rrr / Solved-Unable-to-render-rich-display-for-Jupyter-Notebook-ipynb-on-GitHub.md
Last active February 12, 2024 06:06
Solved: Unable to render rich display for Jupyter Notebook ipynb on GitHub!

Last year GitHub launched rich diffs for Jupyter Notebooks

Unfortunately, GitHub's notebook rendering can often run into following errors -

  • "Unable to render code block"
  • "Sorry, this is too big to display"
  • "Unable to render rich display"
  • "The notebook took too long to render"
  • "Sorry, something went wrong. Reload?"
  • etc.
@amit1rrr
amit1rrr / WordCountDemo.java
Created February 28, 2018 17:13
Word count demo of Apache Kafka.
// Serializers/deserializers (serde) for String and Long types
final Serde<String> stringSerde = Serdes.String();
final Serde<Long> longSerde = Serdes.Long();
// Construct a `KStream` from the input topic "streams-plaintext-input", where message values
// represent lines of text (for the sake of this example, we ignore whatever may be stored
// in the message keys).
KStream<String, String> textLines = builder.stream("streams-plaintext-input",
Consumed.with(stringSerde, stringSerde);