title: Ipywidgets Jupyter Notebook Interact Ignore Argument
body: <p>Is there a way to have <code>interact(f)</code> ignore certain arguments in <code>f</code>? I believe it is getting confused by the fact that I have a default argument that I use to pass in a dataframe. Here is my function:</p>
  
  <pre><code>def show_stats(start,end,df_pnl=df_pnl):
      mask = df_pnl['Fulldate'] &gt;= start &amp; df_pnl['FullDate'] &lt;= end
      df_pnl = df_pnl[mask]
      #do some more transformations here
      display(df_pnl)
  </code></pre>
  
  <p>Here is what I'm trying to do:</p>
  
  <pre><code>interact(show_stats,start=start_str,end=today_str)
  </code></pre>
  
  <p>And here is the error I'm getting:</p>
  
  <p><a href="https://i.stack.imgur.com/D3hAx.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/D3hAx.png" alt="enter image description here"></a></p>
  
  <p>I hypothesize that <code>interact</code> somehow changes <code>df_pnl</code> into a string (since it gives a dropdown of the column headers in the interact output), and fails because it then tries to do <code>df_pnl['Fulldate'].....</code> on a string, which causes the error shown.</p>
  
  <p>How do I get around this? Could I exclude that argument from my function while still having it work on the correct dataframe? Is there an option within interact to ignore certain arguments in the function?</p>
  
  <p>Thanks </p>