SimonBiggs / scriptedforms

Quickly create live-update GUIs for Python packages using Markdown and simple HTML elements.
Apache License 2.0
508 stars 34 forks source link

Pandas dataframe no longer displaying automatically #296

Closed SimonBiggs closed 5 years ago

SimonBiggs commented 5 years ago

Pandas dataframe used to display automatically, now need to wrap in ipython display function.

SimonBiggs commented 5 years ago

The issue seems to be that execute results only display when another output has also been displayed:

<section-start>

```python
import pandas as pd
```

</section-start>

<section-start onLoad>

```python
print('boo')

pd.DataFrame(columns=['hello'], data=[1])
```

</section-start>

<section-start onLoad>

```python
pd.DataFrame(columns=['george'], data=[1])
```

</section-start>

<section-start onLoad>

```python
"this won't display"
```

</section-start>

<section-start onLoad>

```python
print('foo')
"this will"
```

</section-start>
SimonBiggs commented 5 years ago

Released 0.10.1 with this fix