We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 509850e commit c95e8b1Copy full SHA for c95e8b1
src/dataframe.rs
@@ -313,9 +313,11 @@ impl PyDataFrame {
313
// Get the Python formatter and config
314
let PythonFormatter { formatter, config } = get_python_formatter_with_config(py)?;
315
316
+ let is_ipython = *is_ipython_env(py);
317
+
318
let (cached_batches, should_cache) = {
319
let mut cache = self.batches.lock();
- let should_cache = *is_ipython_env(py) && cache.is_none();
320
+ let should_cache = is_ipython && cache.is_none();
321
let batches = cache.take();
322
(batches, should_cache)
323
};
0 commit comments