Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Empty line added after executing publish_display_data #11888

Open
maximlt opened this issue Jan 17, 2022 · 1 comment
Open

Empty line added after executing publish_display_data #11888

maximlt opened this issue Jan 17, 2022 · 1 comment
Labels

Comments

@maximlt
Copy link

maximlt commented Jan 17, 2022

I've observed that importing hvplot in a notebook adds a few empty lines in the output cell (holoviz/holoviews#5154):

issue_import_hvplot

After some digging I found that that under the hood it was using the publish_display_data function of the IPython.display module. When executed in a notebook (here with Jupyter lab) this function does indeed add an empty line every time it's called:

image

  • Is this a bug?
  • Is there a way to prevent this behavior?

A more general question would be to ask if there's another way to inject javascript/css/json code/data in a notebook rather than by publish_display_data? It seems to me that what is required by hvplot in the first example I shared (handled by Panel under the hood) could be added in the global metadata of the notebook instead of in a particular cell. But I'm not well versed in the Jupyter format and comms so feel free to ignore this question if totally irrelevant ;) !

@maximlt maximlt added the bug label Jan 17, 2022
@welcome
Copy link

welcome bot commented Jan 17, 2022

Thank you for opening your first issue in this project! Engagement like this is essential for open source projects! 🤗

If you haven't done so already, check out Jupyter's Code of Conduct. Also, please try to follow the issue template as it helps other other community members to contribute more effectively.
welcome
You can meet the other Jovyans by joining our Discourse forum. There is also an intro thread there where you can stop by and say Hi! 👋

Welcome to the Jupyter community! 🎉

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant