xubaiwang opened a new issue, #245:
URL: https://github.com/apache/arrow-js/issues/245
### Describe the enhancement requested
Deno has officially support Jupyter, and jupyter output can be customized by
defining a `[Symbol.for("Jupyter.display")]` getter in the class.
For example, the following code displays a dataframe.
```js
{
[Symbol.for("Jupyter.display")]() {
return {
// HTML output
"text/html": `
<table border="1" class="dataframe">
<thead>
<tr>
<th>name</th>
<th>age</th>
</tr>
</thead>
<tbody>
<tr>
<td>Alice</td>
<td>22</td>
</tr>
<tr>
<td>Bob</td>
<td>24</td>
</tr>
</tbody>
</table>`,
}
}
```
The output is like:
<table class="dataframe">
<thead>
<tr>
<th>name</th>
<th>age</th>
</tr>
</thead>
<tbody>
<tr>
<td>Alice</td>
<td>22</td>
</tr>
<tr>
<td>Bob</td>
<td>24</td>
</tr>
</tbody>
</table>
This can be helpful for interactive data exploration.
Are you interested in having such integration in your project? I can help
make a pull request.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]