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

Feature idea: ability to view HTML file without saving to a file #6

Closed
svisser opened this issue Jul 8, 2017 · 4 comments
Closed

Comments

@svisser
Copy link

svisser commented Jul 8, 2017

It would be nice if this tool could be used without having to delete the HTML file afterwards (when you're done reviewing the CSV file).

For example, you'd run csvtotable my_file.csv --view (or similar) and view the HTML page in your browser directly without writing it to a file (similar to how you can run a webserver by doing python -m http.server 8000).

@vividvilla
Copy link
Owner

This is a great idea. I will implement this in next few releases.

@chfw
Copy link

chfw commented Jul 11, 2017

what about webbrowser.open('/tmp/goog.html')? I don't think there is a need for a http server.

@vividvilla
Copy link
Owner

Added this feature in release v1.1.2.

@chfw Using webbrowser was the most logical solution instead of serving in http server. So I am creating a file inside temp folder created by python tempfile module and keeping the file open till keyboard interrupt exception is raised. You can refer the function here.

@svisser
Copy link
Author

svisser commented Jul 13, 2017

@vividvilla many thanks for adding this feature!

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

3 participants