layout | title | permalink |
---|---|---|
section |
Home |
/index/ |
output notebook by default.
This is a simple markdown page with GitHub code snippets. All this will be translated into a Jupyter notebook using the desired language.
Here is a code sample:
{% github_sample /davidcavazos/md2ipynb/blob/master/examples/code/hello-world.py tag:hello_world %}
{: .output}
Output:
{: .output}
Hello from Python!
{: .language-py}
Run in Colab | View on GitHub |
{% github_sample /davidcavazos/md2ipynb/blob/master/examples/code/HelloWorld.java tag:hello_world %}
{: .output} Output:
{: .output}
Hello from Java!
{: .language-java}
Run in Colab | View on GitHub |
{% github_sample /davidcavazos/md2ipynb/blob/master/examples/code/hello-world.go tag:hello_world %}
{: .output} Output:
{: .output}
Hello from Java!
{: .language-go}
Run in Colab | View on GitHub |
You are all done!
HTML is also supported since Markdown is a superset of HTML
In "form view", a code cell's contents will be hidden by default in Colab. You can open and close the contents by double clicking it.
#@title A code cell containing `#@title`
# Contents will be hidden in Colab
Or, a code cell containing #@param
.
message = "Hello!" #@param {type:"string"}
print(f"message: {repr(message)}")
Check the README.md for more instructions.