Create a GitBook Data Science Portfolio
Last updated
Last updated
April 10, 2022
GitBook is a powerful document editor that integrates seamlessly with Github.
By reading this article, you will be able to set up your own Data Science portfolio website using GitBook in less than 30 minutes.
Advantages:
Free website hosting
Quick setup
Integration with Github
Mobile friendly
Disadvantages:
Lacking in detailed documentation
Have to use Markdown (not sure how to show HTML documents)
Less customization compared to hosting your own personal website
Use GitBook if you want to create a portfolio quickly without the hassle of having to code your own website
Get Started With Github Account
You can create it through the terminal or on the github website.
I created mine on the github website like this:
Go to GitBook.com and create a free account. You can use your github login to sign in.
Click the blue + symbol on the bottom left and create a new Space.
In the start with a template section, click on 'Internal Wiki'.
Now the page will look like this:
Feel free to personalize your Space by naming your Space, changing the theme, changing the symbol in the upper-left corner, etc.
Click on the 3 dots in the top right corner and then click on 'Synchronize with Git':
Click configure, and then click 'Connect with Github'.
Link your new repository:
There are two options. Click Github to Gitbook for now (you can change it later if you want).
Synchronize.
Go to your Github Repository that you just linked to GitBook, and edit your ReadMe file. You can edit it through the Github website, or you can clone your repository to your favorite IDE and edit it in your IDE.
Editing in Github website:
Editing in Your Favorite IDE:
I cloned my repository into Jupyter Lab and edit in there.
Introduce yourself and your portfolio however you would like!
Your Summary.md file tells GitBook how to organize your Space.
For example here is my Summary.md file:
And here is what my Space looks like:
After clicking on the regression tab you can see the articles in it:
Now that the framework for the website is all set up, we need to add content to link into your Summary.md!
GitBooks takes Markdown, HTML, or Word files. I'm not sure how to use HTML or Word files in GitBook, but see below for help with Markdown files.
Do you have any previous coding notebooks that you want to display in your portfolio? You can convert .html, .Rmd, and .ipynb files into Markdown.
Do you have any presentations, reports, or papers that you want to display in your portfolio? You can display your documents in your Markdown files by linking them.
Run this line of code in your terminal. This will create a markdown file with the same name and also create a folder with images/attachments that are from the notebook.
I like to use codebeautify.org to convert html to markdown. You just copy and paste into the converter.
Please feel free to contact me and let me know if you have a better tool!
Run this line of code in R.
See md_document function for further reference.
I wrote a blog post in canva and saved each page as an image.
My markdown file looks like this:
I did the same thing for a powerpoint presentation. I saved every slide as an image and then linked them in a Markdown file.
For an example of how to organize your Github Repository, take a look at my own repository and the Summary.md file.
Feel free to look at my Markdown files to see how I wrote them as well.
GitBook is a fantastic platform to host Data Science portfolios.
Here are some additional resources:
I hope you will use your portfolio to not only impress employers but also keep useful notes that will help you throughout your career. Good luck!