<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Piotr</title>
    <description>The latest articles on DEV Community by Piotr (@pplonski).</description>
    <link>https://dev.to/pplonski</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F380593%2F022d66eb-55c7-43a3-9dfa-46df4ac538c7.jpeg</url>
      <title>DEV Community: Piotr</title>
      <link>https://dev.to/pplonski</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/pplonski"/>
    <language>en</language>
    <item>
      <title>Reimagine Python Notebooks in the AI Era: What If You Didn’t Write Code First?</title>
      <dc:creator>Piotr</dc:creator>
      <pubDate>Fri, 17 Apr 2026 10:21:35 +0000</pubDate>
      <link>https://dev.to/pplonski/reimagine-python-notebooks-in-the-ai-era-what-if-you-didnt-write-code-first-n6l</link>
      <guid>https://dev.to/pplonski/reimagine-python-notebooks-in-the-ai-era-what-if-you-didnt-write-code-first-n6l</guid>
      <description>&lt;p&gt;For years, Jupyter Notebook has been the default tool for data analysis in Python.&lt;/p&gt;

&lt;p&gt;But it assumes one thing:&lt;/p&gt;

&lt;p&gt;👉 you start with code.&lt;/p&gt;

&lt;h2&gt;
  
  
  What if you didn’t?
&lt;/h2&gt;

&lt;p&gt;I’ve been experimenting with a different workflow.&lt;/p&gt;

&lt;p&gt;Instead of writing Python, you describe what you want in plain English — and the system generates and runs the code for you.&lt;/p&gt;

&lt;p&gt;The flow becomes:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;prompt → LLM-generated code → auto-execution → results
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Code is still there.&lt;br&gt;
But it’s no longer the starting point.&lt;/p&gt;
&lt;h2&gt;
  
  
  Why this might matter
&lt;/h2&gt;

&lt;p&gt;The idea came from a simple observation.&lt;/p&gt;

&lt;p&gt;Someone told me:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;“I don’t care about the code. I care about the results.”&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;And honestly, that stuck with me.&lt;/p&gt;

&lt;p&gt;As engineers, we often treat code as the main interface.&lt;br&gt;
But for many people, it’s just a tool to get answers.&lt;/p&gt;
&lt;h2&gt;
  
  
  Old problems... less important?
&lt;/h2&gt;

&lt;p&gt;There has been a lot of criticism of notebooks over the years:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;hidden state&lt;/li&gt;
&lt;li&gt;mixing code and outputs&lt;/li&gt;
&lt;li&gt;hard to review in git&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;These problems are real.&lt;/p&gt;

&lt;p&gt;But I’m starting to wonder if AI changes which of them actually matter.&lt;/p&gt;

&lt;p&gt;If:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;code is generated&lt;/li&gt;
&lt;li&gt;execution is automated&lt;/li&gt;
&lt;li&gt;results become the main interface&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;then some of these issues feel... less central.&lt;/p&gt;
&lt;h2&gt;
  
  
  New problems appear
&lt;/h2&gt;

&lt;p&gt;Of course, we are not removing complexity — we are shifting it.&lt;/p&gt;

&lt;p&gt;New challenges show up:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;trusting LLM-generated code&lt;/li&gt;
&lt;li&gt;debugging when something goes wrong&lt;/li&gt;
&lt;li&gt;less visibility into what is actually happening&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;In some cases, these might be even harder than the original problems.&lt;/p&gt;
&lt;h2&gt;
  
  
  A small but important detail
&lt;/h2&gt;

&lt;p&gt;One thing I care about a lot:&lt;/p&gt;

&lt;p&gt;👉 everything is still saved as a standard &lt;code&gt;.ipynb&lt;/code&gt; file&lt;/p&gt;

&lt;p&gt;So you can always:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;open it in a classic notebook&lt;/li&gt;
&lt;li&gt;inspect the code&lt;/li&gt;
&lt;li&gt;edit anything manually&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Nothing is locked in.&lt;/p&gt;
&lt;h2&gt;
  
  
  So what’s really changing?
&lt;/h2&gt;

&lt;p&gt;Maybe the biggest shift is this:&lt;/p&gt;

&lt;p&gt;We are moving from:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;code → results
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;to:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;intent → results
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Code becomes an implementation detail, not the main interface.&lt;/p&gt;

&lt;h2&gt;
  
  
  Open question
&lt;/h2&gt;

&lt;p&gt;Are we solving notebook problems — or just hiding them behind AI?&lt;/p&gt;

&lt;p&gt;I wrote a longer version with screenshots and implementation details here:&lt;br&gt;
👉 &lt;a href="https://mljar.com/blog/reimagine-python-notebook-in-ai-era/" rel="noopener noreferrer"&gt;https://mljar.com/blog/reimagine-python-notebook-in-ai-era/&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;I’d love to hear your perspective:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Would you use a prompt-first notebook?&lt;/li&gt;
&lt;li&gt;Does this make notebooks better — or just different?&lt;/li&gt;
&lt;/ul&gt;

</description>
      <category>python</category>
      <category>jupyter</category>
      <category>ai</category>
      <category>datascience</category>
    </item>
  </channel>
</rss>
