question

Upvotes
Accepted
25 1 2 2

If copy sample python code from articles, &nbsps added

https://developers.refinitiv.com/en/article-catalog/article/instrument-pricing-analytics-volatility-surfaces-and-curves - for example, if I try copy code from this article and put it to my IDEA, nbsp symbols (white spaces) added, which are not accepted for python style code. for me, and I assume for other users, it's not convenient to remove all nbsp after every copy peace of the code.

pythonhtml
1610924049402.png (100.8 KiB)
icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

<AHS>

Hi @umer.nalla ,

Please let us know if we have any updates from the Dev Portal development team. The issue still persists and I have faced this issue too.

<AHS>

extend triage for a month as there's no update from dev portal dev team yet

<AHS>

extend triage for a month as there's no update from the dev-portal dev team yet, and the issue still persists.

<AHS>

extend triage for a month as there's no update from the dev-portal dev team yet, and the issue still persists.

<AHS>

I did a quick test. The ANSUP-14581 issue and new issue found by @raksina.samasiri were fixed.

Show more comments
Upvote
Accepted
25.3k 87 12 25

Hi @stepan.kalika

Can you please confirm which IDE you are using so I can discuss with the website development team?

In the meantime, you can access the full source code for the Jupyter Notebook on GitHub. The link can be found on the right-hand side at the start of the article.

Refinitiv-API-Samples/Article.RDPLibrary.Python.VolatilitySurfaces_Curves: Create & Plot ETI and FX Volatility Surfaces, Smile Curves, Term Structures, Forward Curves and more using Instrument Pricing Analytics Data and the Refinitiv Data Platform Library (github.com)


icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Upvotes
25 1 2 2

thanks for GitHub link. I'm using 2 IDEs: PyCharm, Visual Studio Code

icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Thanks @stepan.kalika

I can recreate in PyCharm and VS Code.

I have reported this issue to the Dev Portal development team.

yes, i can confirm i see this issue in both VS Code and PyCharm. but not matter which IDE use, the issue still presents. the screnshot below is from VS Code:

1610972283416.png (53.7 KiB)
Upvotes
32.2k 40 11 20

Hello @stepan.kalika and @umer.nalla ,

Could you please confirm on your side, if you are still seeing this issue?

From my testing, the issue looks to be fixed:

  • If I press "Copy" link at the bottom right of the code segment, the code consequently pastes into IDE "as is".
  • If however I highlight and then copy, a lot of white spaces also get consequently pasted with the code.

Thanks

icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

<AHS>

hi @zoya faberov,

I tried clicking Copy button on this code block but still got the invalid character in the clipboard. It seems like the issue is still persists.1646718548102.png

1646718876630.png

1646718548102.png (38.2 KiB)
1646718876630.png (73.7 KiB)

Hi @raksina.samasiri ,

Thank you-I see it too now.

In Adobe Website Issues Log, and I see it as reported by Umer, on March 31, 2021, "MYA-37823", brought up to Adobe, not resolved.

Upvotes
24.6k 54 17 14

Please be informed that the copy code example issue(s) has been fixed.

icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Yes, it has been fixed. Thanks.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.