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

Lack of homepage example #1031

Closed
jameshfisher opened this issue Jan 8, 2023 · 7 comments
Closed

Lack of homepage example #1031

jameshfisher opened this issue Jan 8, 2023 · 7 comments

Comments

@jameshfisher
Copy link

The homepage starts out by asking, "Have you always wished Jupyter notebooks were plain text documents?" Yes! A great start.

My natural next question was: Does Jupytext deliver on the claim that it lets me write notebooks in "plain text"? Or is it a false promise, more like "JSON with some Markdown mixed in"?

To answer that, I wanted an extended example of what a Jupytext file looks like. But that was surprisingly hard to find. I clicked through every page of the docs, and looked at the Github README. I found nothing.

I then went to close the page, but thought you might appreciate feedback on my experience. IMO you'd benefit a lot by adding an extensive example to the homepage.

@mwouts
Copy link
Owner

mwouts commented Jan 18, 2023

Hey @jameshfisher , thanks for your feedback.

Well there are several formats and it would be a bit too long to document all of them in the readme.

Nevertheless we have this section about which format we recommend depending on your use case:
https://github.com/mwouts/jupytext#which-text-format (with links to the docs)

You can also have a look at the examples directly: https://github.com/mwouts/jupytext/tree/main/demo

@mnhrdt
Copy link

mnhrdt commented Jan 18, 2023

I concur with @jamesfisher. A minimal "hello world" example in the landing page would be an extremely powerful case for jupytext. As the main jupytext advocate in my lab, I find the homepage a bit lackluster when I point my colleagues to it. Of course there are several formats, but just show the simplest possible one. Like this:

# hello.py
# This is a complete jupytext notebook.
# Comments are markdown cells, verbatim code are code cells.

print("you can run this python program or open it with your browser as a notebook")

print ("a blank line separates cells")

# A markdown cell with some LaTeX: $\sum_{n=1}^\infty \frac1{n^2} = \frac{\pi^2}6$

And then show a screenshot of the browser showing this as a notebook:

shot

@jameshfisher
Copy link
Author

Ha - I feel like I just learned more from @mnhrdt 's small example than I did when I was browsing the docs!

@mwouts
Copy link
Owner

mwouts commented Feb 19, 2023

😄 thanks for challenging me, actually I think you're right. I'll update the README hopefully later today.

@mwouts
Copy link
Owner

mwouts commented Jul 3, 2023

Well, it took me a bit longer than expected, but at least it finally happened... let me know what you think of the new README.md!

@mwouts mwouts closed this as completed Jul 3, 2023
@jameshfisher
Copy link
Author

This looks much better! ❤️

@mnhrdt
Copy link

mnhrdt commented Jul 4, 2023

Looks great! (though I have a preference for the light format, which is easier to sell to people who prefer to edit notebooks with a text editor)

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

No branches or pull requests

3 participants