Open szha opened 6 years ago
I suggest we follow https://devguide.python.org/documenting/#showing-code-examples (note the toggle in the upper right corner of the code example)
Reopening due to https://github.com/dmlc/gluon-nlp/pull/438
We may not need to add a copy button again. It seems reasonably simple to copy code examples without any supporting button with the new layout. If you agree, feel free to close again.
@leezu let's see how the new build looks.
Any update on this?
The problem still exists for the linked doc http://gluon-nlp.mxnet.io/api/notes/data_api.html
users may want to use a snippet from example directly, so making the notebooks copy-friendly is important
currently the code blocks have python shell prefix ">>>" in them. see http://gluon-nlp.mxnet.io/api/notes/data_api.html