Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
ramonsuarez
Advocate II
Advocate II

How to copy formatted notebook output to the clipboard ?

Hi, 

 

I'm having trouble copy-pasting for my documentation.

 

When I have content that cannot be downloaded as a file via the menu on top of the output cell, I copy it to the clibpoard, but when I paste it none of the formatting is respected and I end up with a mess.

 

E.g.: I print out multiple dataframes with .show() within the same code cell and then I try to copy and paste the results. 

 

As I'm having more than a single dataframe in the output cell, there's no download option. 

 

I do this a lot when debugging, and it is not workable to add a new cell after every few lines. 

If I could save the result to a file in my local computer it could be helpful too. 

I've tried both with Windows and Linux computers and on multiple browsers (also Edge). 

 

Thanks for your help 🙂 

1 ACCEPTED SOLUTION

Hi @ramonsuarez ,

Now I can understand your issue more clearly.
This issue looks like Word, Obsidian, and Google Docs are not supporting this format.
We didn't find any issue when we copied it to notepad. 
Currently we only support this format only, apologies for that.

Appreciate if you could share the feedback on our feedback channel for feature request like copy clipboard option. Which would be open for the user community to upvote & comment on. This allows our product teams to effectively prioritize your request against our existing feature backlog and gives insight into the potential impact of implementing the suggested feature.

Hope this is helpful. Please let me know if you have any further queries.

View solution in original post

7 REPLIES 7
ramonsuarez
Advocate II
Advocate II

No, I'm not looking for an option to download the dataframe. I know how to do that.

The issue is when I want to copy and paste results that are not single dataframes.

Examples: 

* Result of a query with the schemas of multiple tables of my lakehouse

* Anything diplayed as one or more tables that does not use display(). 

 

Hi @ramonsuarez ,

When I tried to display to two tables using .show(), I was able to drag and copy the dataframes to a notepad without any issue.

vgchennamsft_0-1704801923175.png

 

vgchennamsft_1-1704801941994.png


In case if your requirment is quite different and it is not supported in Fabric Notebooks.

Appreciate if you could share the feedback on our feedback channel. Which would be open for the user community to upvote & comment on. This allows our product teams to effectively prioritize your request against our existing feature backlog and gives insight into the potential impact of implementing the suggested feature.

 

Hope this helps. Please let me know if you have any further queries.

Thanks for the work around, but the issue persists with Word, Obsidian, and Google Docs. 

With this extra step the format is preserved when copying and pasting from Notepad. 

Hi @ramonsuarez ,

Now I can understand your issue more clearly.
This issue looks like Word, Obsidian, and Google Docs are not supporting this format.
We didn't find any issue when we copied it to notepad. 
Currently we only support this format only, apologies for that.

Appreciate if you could share the feedback on our feedback channel for feature request like copy clipboard option. Which would be open for the user community to upvote & comment on. This allows our product teams to effectively prioritize your request against our existing feature backlog and gives insight into the potential impact of implementing the suggested feature.

Hope this is helpful. Please let me know if you have any further queries.

Thanks, here's the feedback requesting a fix on the  Fabric Ideas platform. 

v-gchenna-msft
Community Support
Community Support

Hi @ramonsuarez ,

Thanks for using Fabric Community.

As I understand you are looking for option to download the dataframe.
Can you try using below function:

display(df)

vgchennamsft_0-1704432490160.png


Hope this is helpful. Please let me know incase of further queries.

Hi @ramonsuarez ,

We haven’t heard from you on the last response and was just checking back to see if you have a resolution yet .
Otherwise, will respond back with the more details and we will try to help .

Helpful resources

Announcements
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

Expanding the Synapse Forums

New forum boards available in Synapse

Ask questions in Data Engineering, Data Science, Data Warehouse and General Discussion.

MayFabricCarousel

Fabric Monthly Update - May 2024

Check out the May 2024 Fabric update to learn about new features.

LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.