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

add jupyter notebook integration / css / agree on style #23

Open
ghost opened this issue May 4, 2018 · 3 comments
Open

add jupyter notebook integration / css / agree on style #23

ghost opened this issue May 4, 2018 · 3 comments

Comments

@ghost
Copy link

ghost commented May 4, 2018

@jonas-braun @ellenkoenig
Using Jupyter notebooks with Jekyll is fairly straightforward, according to www.linode.com, if you simply export your JN as MD. That's good enough for me. But it might require some CSS tweakage, and there there's the question of how/where graphics and images are stored. Also, the style guide might need to be updated to account for JN formatting issues – such as output, which can be looooonng.

@jonas-braun
Copy link
Contributor

for now, lets use this schema:
export jupyter-notebook as markdown and paste it into the jekyll source files. input blocks look like this:

countries = list(set(user_countries.values())) 
print(len(countries)) 

(three backticks and the language python)
and output blocks look like this

162

(no backticks, simply indented using white spaces)

lets make a nice stylesheet later and keep the black background to stick with the OTS stylesheet.

@jonas-braun
Copy link
Contributor

I updated the stylesheet to give us a new look for juypter-style code blocks. See loop example in https://opentechschool.github.io/python-data-intro/core/recap.html
An html tag around the code causes it to be formatted as input and output of a jupyter script.

@ghost
Copy link
Author

ghost commented May 19, 2018

Looks good! We might want to ditch the border surrounding the cell. It cuts through the "show" button.

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

1 participant