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

Idea: Gist export (and probably import) #57

Open
zverok opened this issue Sep 8, 2017 · 1 comment
Open

Idea: Gist export (and probably import) #57

zverok opened this issue Sep 8, 2017 · 1 comment

Comments

@zverok
Copy link
Collaborator

zverok commented Sep 8, 2017

Just a wild idea, not sure how useful... But seems quite a bit.

Use case: I have some data and want to quickly show it to a colleague in another city. What's the sanest and easiest way to do it? Well, typically, we'll save the file, and then share file somewhere... But there can be this:

dataframe.first(1000).to_gist(access_token: '123456', format: :csv, name: 'data1')
# => prints URL https://gist.github.com/zverok/44971da8a59b07521a0914b657ff770f

dataframe.first(1000).to_gist(access_token: '123456', format: :markdown, name: 'data2')
# => prints URL https://gist.github.com/zverok/535ed082eaae7c5bf2a42fcda9676b42 

(Both URLs I've created just for this demo)

This way, you can send links to your data to friends without ever leaving your IRuby notebook, or IRB session, or folder with data processing scripts.

CSV one is simpler to implement (our CSV exporter + Gist API, which is reasonable and well-documented), but Markdown also seems cool.

@athityakumar
Copy link
Member

Exporting as markdown is something that can definitely be worked on (similar to HTML, a table-like UI seems intuitive?). Also, based on discussion here and at #56, I see foreshadowing that daru-io could also be supporting to cloud upload (like Gist) along with exporters. Nevertheless, this idea seems good to me.

  • Markdown Exporter (and Importer?)
  • Push to gist

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

No branches or pull requests

2 participants