Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Z
Zipfs Law
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Remus, Dr. Steffen
Zipfs Law
Commits
07be5065
Commit
07be5065
authored
1 year ago
by
Remus, Dr. Steffen
Browse files
Options
Downloads
Patches
Plain Diff
sync
parent
6f868ad9
Branches
Branches containing commit
Tags
v0.6.4
Tags containing commit
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
bin/test.py
+11
-0
11 additions, 0 deletions
bin/test.py
live-examples.ipynb
+81
-0
81 additions, 0 deletions
live-examples.ipynb
with
92 additions
and
0 deletions
bin/test.py
0 → 100644
+
11
−
0
View file @
07be5065
"""
One-line description of what the script does.
"""
import
sys
def
main
(
name
):
"""
Run the program.
"""
print
(
f
'
Hello
{
name
}
'
)
if
__name__
==
'
__main__
'
:
args
=
sys
.
argv
[
1
:]
main
(
*
args
)
\ No newline at end of file
This diff is collapsed.
Click to expand it.
live-examples.ipynb
0 → 100644
+
81
−
0
View file @
07be5065
{
"cells": [
{
"attachments": {},
"cell_type": "raw",
"id": "5d9ab2e2-37ce-493b-81c7-efbdd1956a85",
"metadata": {},
"source": [
"### display some information\n",
"print('hello world')"
]
},
{
"cell_type": "code",
"execution_count": null,
"id": "04c956b8-9980-4390-8b7a-eb48168be0fa",
"metadata": {},
"outputs": [],
"source": [
"%magic"
]
},
{
"cell_type": "code",
"execution_count": 15,
"id": "49748b35-57b3-4aad-b442-911ef581e7f4",
"metadata": {},
"outputs": [],
"source": [
"from bin import test"
]
},
{
"cell_type": "code",
"execution_count": 16,
"id": "a5f84be5-ef09-443d-866c-479107193546",
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"Hello Steffen\n"
]
}
],
"source": [
"test.main('Steffen')"
]
},
{
"cell_type": "code",
"execution_count": null,
"id": "70008ef5-ba71-475d-95c8-abb4cb23325e",
"metadata": {},
"outputs": [],
"source": []
}
],
"metadata": {
"kernelspec": {
"display_name": "Python 3 (ipykernel)",
"language": "python",
"name": "python3"
},
"language_info": {
"codemirror_mode": {
"name": "ipython",
"version": 3
},
"file_extension": ".py",
"mimetype": "text/x-python",
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.11.2"
}
},
"nbformat": 4,
"nbformat_minor": 5
}
%% Cell type:raw id:5d9ab2e2-37ce-493b-81c7-efbdd1956a85 tags:
### display some information
print('hello world')
%% Cell type:code id:04c956b8-9980-4390-8b7a-eb48168be0fa tags:
```
python
%
magic
```
%% Cell type:code id:49748b35-57b3-4aad-b442-911ef581e7f4 tags:
```
python
from
bin
import
test
```
%% Cell type:code id:a5f84be5-ef09-443d-866c-479107193546 tags:
```
python
test
.
main
(
'
Steffen
'
)
```
%% Output
Hello Steffen
%% Cell type:code id:70008ef5-ba71-475d-95c8-abb4cb23325e tags:
```
python
```
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment