Jose Alonso Solis-Lemus
    • Create new note
    • Create a note from template
      • Sharing URL Link copied
      • /edit
      • View mode
        • Edit mode
        • View mode
        • Book mode
        • Slide mode
        Edit mode View mode Book mode Slide mode
      • Customize slides
      • Note Permission
      • Read
        • Only me
        • Signed-in users
        • Everyone
        Only me Signed-in users Everyone
      • Write
        • Only me
        • Signed-in users
        • Everyone
        Only me Signed-in users Everyone
      • Engagement control Commenting, Suggest edit, Emoji Reply
    • Invite by email
      Invitee

      This note has no invitees

    • Publish Note

      Share your work with the world Congratulations! 🎉 Your note is out in the world Publish Note

      Your note will be visible on your profile and discoverable by anyone.
      Your note is now live.
      This note is visible on your profile and discoverable online.
      Everyone on the web can find and read all notes of this public team.
      See published notes
      Unpublish note
      Please check the box to agree to the Community Guidelines.
      View profile
    • Commenting
      Permission
      Disabled Forbidden Owners Signed-in users Everyone
    • Enable
    • Permission
      • Forbidden
      • Owners
      • Signed-in users
      • Everyone
    • Suggest edit
      Permission
      Disabled Forbidden Owners Signed-in users Everyone
    • Enable
    • Permission
      • Forbidden
      • Owners
      • Signed-in users
    • Emoji Reply
    • Enable
    • Versions and GitHub Sync
    • Note settings
    • Note Insights New
    • Engagement control
    • Make a copy
    • Transfer ownership
    • Delete this note
    • Save as template
    • Insert from template
    • Import from
      • Dropbox
      • Google Drive
      • Gist
      • Clipboard
    • Export to
      • Dropbox
      • Google Drive
      • Gist
    • Download
      • Markdown
      • HTML
      • Raw HTML
Menu Note settings Note Insights Versions and GitHub Sync Sharing URL Create Help
Create Create new note Create a note from template
Menu
Options
Engagement control Make a copy Transfer ownership Delete this note
Import from
Dropbox Google Drive Gist Clipboard
Export to
Dropbox Google Drive Gist
Download
Markdown HTML Raw HTML
Back
Sharing URL Link copied
/edit
View mode
  • Edit mode
  • View mode
  • Book mode
  • Slide mode
Edit mode View mode Book mode Slide mode
Customize slides
Note Permission
Read
Only me
  • Only me
  • Signed-in users
  • Everyone
Only me Signed-in users Everyone
Write
Only me
  • Only me
  • Signed-in users
  • Everyone
Only me Signed-in users Everyone
Engagement control Commenting, Suggest edit, Emoji Reply
  • Invite by email
    Invitee

    This note has no invitees

  • Publish Note

    Share your work with the world Congratulations! 🎉 Your note is out in the world Publish Note

    Your note will be visible on your profile and discoverable by anyone.
    Your note is now live.
    This note is visible on your profile and discoverable online.
    Everyone on the web can find and read all notes of this public team.
    See published notes
    Unpublish note
    Please check the box to agree to the Community Guidelines.
    View profile
    Engagement control
    Commenting
    Permission
    Disabled Forbidden Owners Signed-in users Everyone
    Enable
    Permission
    • Forbidden
    • Owners
    • Signed-in users
    • Everyone
    Suggest edit
    Permission
    Disabled Forbidden Owners Signed-in users Everyone
    Enable
    Permission
    • Forbidden
    • Owners
    • Signed-in users
    Emoji Reply
    Enable
    Import from Dropbox Google Drive Gist Clipboard
       Owned this note    Owned this note      
    Published Linked with GitHub
    • Any changes
      Be notified of any changes
    • Mention me
      Be notified of mention me
    • Unsubscribe
    # Using openCARP's docker container Assume you want to run `openCARP` on a file called `carpf_laplace_PA.par`, that is located on a folder `$LAPath`, then: **Using openCARP installed on your machine**. This is equivalent to using the AppImage, only the name changes: ```shell! cd $LAPath openCARP +F carpf_laplace_PA.par --simID PA_UAC ``` **Using openCARP's docker** We'll display the command in multiple lines to be more understandable: ```shell docker run \ --rm \ --volume=$LAPath:/shared:z --workdir=/shared \ docker.opencarp.org/opencarp/opencarp:latest \ openCARP \ +F carpf_laplace_PA.par --simID PA_UAC ``` > In a single line: ```shell docker run --rm --volume=$LAPath:/shared:z --workdir=/shared docker.opencarp.org/opencarp/opencarp:latest openCARP +F carpf_laplace_PA.par --simID PA_UAC ``` # Another example Paste your code below: ```shell # #!/bin/bash # EXAMPLE 1 echo "==== Using local meshtool ==== " meshtool convert -imsh="$LAPath/Labelled" -ifmt=carp_txt -omsh="$LAPath/Labelled" -ofmt=carp_txt -scale=1000 echo "==== Using meshtool inside openCARP docker ====" docker run --rm --volume=$LAPath:/shared:z --workdir=/shared docker.opencarp.org/opencarp/opencarp:latest meshtool convert -imsh="Labelled" -ifmt=carp_txt -omsh="Labelled" -ofmt=carp_txt -scale=1000 # EXAMPLE 2 echo "==== Using openCARP AppImage ====" cd "$LAPath/" openCARP-v13.0-x86_64.AppImage +F carpf_laplace_PV1.par -simID MV_PV1 echo "==== Using docker openCARP ====" docker run --rm --volume=$LAPath:/shared:z --workdir=/shared docker.opencarp.org/opencarp/opencarp:latest openCARP +F carpf_laplace_PV1.par -simID MV_PV1 ``` Try it yourself! ## Additional Question When I ran the script, Docker is not running in the background. Is this the problem? ## Directory Structure ``` root (Project root Folder) ├─UAC_code(UAC code folder) ├─Data │ ├─CardioInsight_clipped.stl │ ├─CardioInsight_Landmarks.txt │ ├─CardioInsight_Regions.txt │ ├─Ensite_clipped.stl │ ├─Ensite_Landmarks.txt │ └─Ensite_Regions.txt └─umc-lav_CardioInsight.sh ``` ## Changed Segment Line 64 - 74 ```shell= docker run --rm --volume=/mnt/c/Users/catsk/OneDrive/桌面/PCAL_NonInvasiveMappingProject/Data/:/shared:z --workdir=/shared docker.opencarp.org/opencarp/opencarp:latest openCARP +F carpf_laplace_PV1.par -simID MV_PV1 docker run --rm --volume=/mnt/c/Users/catsk/OneDrive/桌面/PCAL_NonInvasiveMappingProject/Data/:/shared:z --workdir=/shared docker.opencarp.org/opencarp/opencarp:latest openCARP +F carpf_laplace_PV2.par -simID MV_PV2 docker run --rm --volume=/mnt/c/Users/catsk/OneDrive/桌面/PCAL_NonInvasiveMappingProject/Data/:/shared:z --workdir=/shared docker.opencarp.org/opencarp/opencarp:latest openCARP +F carpf_laplace_PV3.par -simID MV_PV3 docker run --rm --volume=/mnt/c/Users/catsk/OneDrive/桌面/PCAL_NonInvasiveMappingProject/Data/:/shared:z --workdir=/shared docker.opencarp.org/opencarp/opencarp:latest openCARP +F carpf_laplace_PV4.par -simID MV_PV4 docker run --rm --volume=/mnt/c/Users/catsk/OneDrive/桌面/PCAL_NonInvasiveMappingProject/Data/:/shared:z --workdir=/shared docker.opencarp.org/opencarp/opencarp:latest openCARP +F carpf_laplace_LAA.par -simID MV_LAA # openCARP-v13.0-x86_64.AppImage +F carpf_laplace_PV1.par -simID MV_PV1 # openCARP-v13.0-x86_64.AppImage +F carpf_laplace_PV2.par -simID MV_PV2 # openCARP-v13.0-x86_64.AppImage +F carpf_laplace_PV3.par -simID MV_PV3 # openCARP-v13.0-x86_64.AppImage +F carpf_laplace_PV4.par -simID MV_PV4 # openCARP-v13.0-x86_64.AppImage +F carpf_laplace_LAA.par -simID MV_LAA ``` ## umc-lav_CardioInsight.sh ```shell= #!/bin/bash echo "Variables" # Variables PROJECT=UAC_code # UAC project directory DATA=Data # data directory PYTHON_PATH2=UAC_code/carpusers-bdx-tools # carpusers-bdx-tools directory export PYTHONPATH=$PROJECT RA_Mesh_Name="Labelled_6" ES_dir="$PROJECT/extra_structures" RAendofib_dir="$PROJECT/fibre_files/ra/endo/l/" RAepifib_dir="$PROJECT/fibre_files/ra/epi/l/" RAbbfib_dir="$PROJECT/fibre_files/bb/ra/" LAendofib_dir="$PROJECT/fibre_files/la/endo/l/" LAepifib_dir="$PROJECT/fibre_files/la/epi/l/" LAbbfib_dir="$PROJECT/fibre_files/bb/la/" MeshName="Labelled" LandmarksRA="CardioInsight_Landmarks.txt" RegionRA="CardioInsight_Regions.txt" LandmarksLA="CardioInsight_Landmarks.txt" RegionLA="CardioInsight_Regions.txt" index=1 pvThreshold=0.85 LAAThreshold=0.9 #Bigger number = smaller area defined From 0 to 1 # Variables LAPath='Data/' LAFile='CardioInsight_clipped.stl' # Using openCARP installed on local machine # cd $LAPath # openCARP +F carpf_laplace_PA.par --simID PA_UAC # Shared folder absolute path: # /mnt/c/Users/catsk/OneDrive/桌面/PCAL_NonInvasiveMappingProject/Data/ # Create shared folder and set the working directory inside the container shared folder # docker run --rm --volume=$LAPath:/shared:z --workdir=/shared docker.opencarp.org/opencarp/opencarp:latest openCARP +F carpf_laplace_PA.par --simID PA_UAC # Combined: docker run --rm --volume=/mnt/c/Users/catsk/OneDrive/桌面/PCAL_NonInvasiveMappingProject/Data/:/shared:z --workdir=/shared docker.opencarp.org/opencarp/opencarp:latest openCARP +F carpf_laplace_PA.par --simID PA_UAC echo $LAPath python $PYTHON_PATH2/trans_mod.py --from-format=stl --to-format=carp "$LAPath/$LAFile" "$LAPath/Labelled.pts" meshtool convert -imsh="$LAPath/Labelled" -ifmt=carp_txt -omsh="$LAPath/Labelled" -ofmt=carp_txt -scale=1000 python $PROJECT/scripts/labels_la_1.py $LAPath "$PROJECT/fibre_files/la/endo/" "$PROJECT/laplace_files/" Labelled $pvThreshold $LAAThreshold $RegionLA 1000 cp "$PROJECT/laplace_files/carpf_laplace_PV1.par" "$LAPath/carpf_laplace_PV1.par" cp "$PROJECT/laplace_files/carpf_laplace_PV2.par" "$LAPath/carpf_laplace_PV2.par" cp "$PROJECT/laplace_files/carpf_laplace_PV3.par" "$LAPath/carpf_laplace_PV3.par" cp "$PROJECT/laplace_files/carpf_laplace_PV4.par" "$LAPath/carpf_laplace_PV4.par" cp "$PROJECT/laplace_files/carpf_laplace_LAA.par" "$LAPath/carpf_laplace_LAA.par" cd "$LAPath/" docker run --rm --volume=/mnt/c/Users/catsk/OneDrive/桌面/PCAL_NonInvasiveMappingProject/Data/:/shared:z --workdir=/shared docker.opencarp.org/opencarp/opencarp:latest openCARP +F carpf_laplace_PV1.par -simID MV_PV1 docker run --rm --volume=/mnt/c/Users/catsk/OneDrive/桌面/PCAL_NonInvasiveMappingProject/Data/:/shared:z --workdir=/shared docker.opencarp.org/opencarp/opencarp:latest openCARP +F carpf_laplace_PV2.par -simID MV_PV2 docker run --rm --volume=/mnt/c/Users/catsk/OneDrive/桌面/PCAL_NonInvasiveMappingProject/Data/:/shared:z --workdir=/shared docker.opencarp.org/opencarp/opencarp:latest openCARP +F carpf_laplace_PV3.par -simID MV_PV3 docker run --rm --volume=/mnt/c/Users/catsk/OneDrive/桌面/PCAL_NonInvasiveMappingProject/Data/:/shared:z --workdir=/shared docker.opencarp.org/opencarp/opencarp:latest openCARP +F carpf_laplace_PV4.par -simID MV_PV4 docker run --rm --volume=/mnt/c/Users/catsk/OneDrive/桌面/PCAL_NonInvasiveMappingProject/Data/:/shared:z --workdir=/shared docker.opencarp.org/opencarp/opencarp:latest openCARP +F carpf_laplace_LAA.par -simID MV_LAA # openCARP-v13.0-x86_64.AppImage +F carpf_laplace_PV1.par -simID MV_PV1 # openCARP-v13.0-x86_64.AppImage +F carpf_laplace_PV2.par -simID MV_PV2 # openCARP-v13.0-x86_64.AppImage +F carpf_laplace_PV3.par -simID MV_PV3 # openCARP-v13.0-x86_64.AppImage +F carpf_laplace_PV4.par -simID MV_PV4 # openCARP-v13.0-x86_64.AppImage +F carpf_laplace_LAA.par -simID MV_LAA python $PROJECT/scripts/labels_la_2.py "$LAPath/" "$PROJECT/fibre_files/la/endo/" "$PROJECT/laplace_files/" Labelled $pvThreshold $LAAThreshold $RegionLA 1000 cp "$LAPath/Labelled_Labels.elem" "$LAPath/Labelled.elem" cp "$PROJECT/laplace_files/carpf_laplace_LS.par" "$LAPath/carpf_laplace_LS.par" cp "$PROJECT/laplace_files/carpf_laplace_PA.par" "$LAPath/carpf_laplace_PA.par" python $PROJECT/scripts/1_la.py "$LAPath/" "$PROJECT/fibre_files/la/endo/" "$PROJECT/laplace_files/" Labelled 11 13 21 23 25 27 $LandmarksLA 1000 echo "=====Old UAC approximation - openCARP command line ($i)=====" cd "$LAPath/" docker run --rm --volume=/mnt/c/Users/catsk/OneDrive/桌面/PCAL_NonInvasiveMappingProject/Data/:/shared:z --workdir=/shared docker.opencarp.org/opencarp/opencarp:latest openCARP +F carpf_laplace_PA.par -simID PA_UAC_N2 docker run --rm --volume=/mnt/c/Users/catsk/OneDrive/桌面/PCAL_NonInvasiveMappingProject/Data/:/shared:z --workdir=/shared docker.opencarp.org/opencarp/opencarp:latest openCARP +F carpf_laplace_LS.par -simID LR_UAC_N2 echo "=====New UAC=====" cp "$PROJECT/laplace_files/carpf_laplace_single_LR_P.par" "$LAPath/carpf_laplace_single_LR_P.par" cp "$PROJECT/laplace_files/carpf_laplace_single_UD_P.par" "$LAPath/carpf_laplace_single_UD_P.par" cp "$PROJECT/laplace_files/carpf_laplace_single_LR_A.par" "$LAPath/carpf_laplace_single_LR_A.par" cp "$PROJECT/laplace_files/carpf_laplace_single_UD_A.par" "$LAPath/carpf_laplace_single_UD_A.par" python $PROJECT/scripts/2a_la.py "$LAPath/" "$PROJECT/fibre_files/la/endo/" "$PROJECT/laplace_files/" Labelled 11 13 21 23 25 27 $LandmarksLA 1000 docker run --rm --volume=/mnt/c/Users/catsk/OneDrive/桌面/PCAL_NonInvasiveMappingProject/Data/:/shared:z --workdir=/shared docker.opencarp.org/opencarp/opencarp:latest openCARP +F carpf_laplace_single_LR_A.par -simID LR_Ant_UAC docker run --rm --volume=/mnt/c/Users/catsk/OneDrive/桌面/PCAL_NonInvasiveMappingProject/Data/:/shared:z --workdir=/shared docker.opencarp.org/opencarp/opencarp:latest openCARP +F carpf_laplace_single_LR_P.par -simID LR_Post_UAC docker run --rm --volume=/mnt/c/Users/catsk/OneDrive/桌面/PCAL_NonInvasiveMappingProject/Data/:/shared:z --workdir=/shared docker.opencarp.org/opencarp/opencarp:latest openCARP +F carpf_laplace_single_UD_A.par -simID UD_Ant_UAC docker run --rm --volume=/mnt/c/Users/catsk/OneDrive/桌面/PCAL_NonInvasiveMappingProject/Data/:/shared:z --workdir=/shared docker.opencarp.org/opencarp/opencarp:latest openCARP +F carpf_laplace_single_UD_P.par -simID UD_Post_UAC echo "=====New UAC part 2=====" python $PROJECT/scripts/2b_la.py "$LAPath/" "$PROJECT/fibre_files/la/endo/" "$PROJECT/laplace_files/" Labelled 11 13 21 23 25 27 1000 echo "=====Add fibres2 =====" python $PROJECT/scripts/fibre_mapping.py "$LAPath/" "$PROJECT/fibre_files/la/endo/l/" "$PROJECT/laplace_files/" Labelled Labelled.lon Fibre_l echo "=====Add LAT field ($i)=====" python $PROJECT/scripts/lat_field.py "$LAPath/" LAT_Spiral4_B.dat Fibre_l echo "=====Make PV stimulus files .vtx ($i)=====" ``` ## Error Code ``` (uac) zack@MSI:/mnt/c/Users/catsk$ cd OneDrive/桌面/PCAL_NonInvasiveMappingProject (uac) zack@MSI:/mnt/c/Users/catsk/OneDrive/桌面/PCAL_NonInvasiveMappingProject$ sh umc-lav_CardioInsight.sh Variables Data/ Reading Data//CardioInsight_clipped.stl in stl format Finished reading Data//CardioInsight_clipped.stl <meshio mesh object> Number of points: 3430 Number of cells: triangle: 6539 Cell data: facet_normals Writing Data//Labelled.pts in carp ASCII format OpenMP thread utilization: 16 / 16 threads. Reading mesh: Data//Labelled Reading elements in text CARP format: [============] 00h:00m:00s FIN Reading points in text CARP format: [============] 00h:00m:00s FIN Reading fibers (1 directions) in text CARP format: [============] 00h:00m:00s FIN Done in 0.01252 sec Processing mesh .. Pass 1: Corrected 0 inside-out elements. Done in 4.2e-05 sec Writing mesh: Data//Labelled Writing elements in text CARP format: [============] 00h:00m:00s FIN Writing points in text CARP format: [============] 00h:00m:00s FIN Writing fibers (1 direction) in text CARP format: [============] 00h:00m:00s FIN Done in 0.135395 sec Traceback (most recent call last): File "UAC_code/scripts/labels_la_1.py", line 7, in <module> from uac import utils File "/mnt/c/Users/catsk/OneDrive/桌面/PCAL_NonInvasiveMappingProject/UAC_code/uac/utils.py", line 10, in <module> import vtk File "/home/zack/anaconda3/envs/uac/lib/python3.8/site-packages/vtk.py", line 30, in <module> all_m = importlib.import_module('vtkmodules.all') File "/home/zack/anaconda3/envs/uac/lib/python3.8/importlib/__init__.py", line 127, in import_module return _bootstrap._gcd_import(name[level:], package, level) File "/home/zack/anaconda3/envs/uac/lib/python3.8/site-packages/vtkmodules/all.py", line 23, in <module> from .vtkRenderingVtkJS import * ImportError: libGL.so.1: cannot open shared object file: No such file or directory The command 'docker' could not be found in this WSL 2 distro. We recommend to activate the WSL integration in Docker Desktop settings. For details about using Docker Desktop with WSL 2, visit: https://docs.docker.com/go/wsl2/ The command 'docker' could not be found in this WSL 2 distro. We recommend to activate the WSL integration in Docker Desktop settings. For details about using Docker Desktop with WSL 2, visit: https://docs.docker.com/go/wsl2/ The command 'docker' could not be found in this WSL 2 distro. We recommend to activate the WSL integration in Docker Desktop settings. For details about using Docker Desktop with WSL 2, visit: https://docs.docker.com/go/wsl2/ The command 'docker' could not be found in this WSL 2 distro. We recommend to activate the WSL integration in Docker Desktop settings. For details about using Docker Desktop with WSL 2, visit: https://docs.docker.com/go/wsl2/ The command 'docker' could not be found in this WSL 2 distro. We recommend to activate the WSL integration in Docker Desktop settings. For details about using Docker Desktop with WSL 2, visit: https://docs.docker.com/go/wsl2/ python: can't open file 'UAC_code/scripts/labels_la_2.py': [Errno 2] No such file or directory cp: cannot stat 'Data//Labelled_Labels.elem': No such file or directory cp: cannot stat 'UAC_code/laplace_files/carpf_laplace_LS.par': No such file or directory cp: cannot stat 'UAC_code/laplace_files/carpf_laplace_PA.par': No such file or directory python: can't open file 'UAC_code/scripts/1_la.py': [Errno 2] No such file or directory =====Old UAC approximation - openCARP command line ()===== umc-lav_CardioInsight.sh: 88: cd: can't cd to Data// The command 'docker' could not be found in this WSL 2 distro. We recommend to activate the WSL integration in Docker Desktop settings. For details about using Docker Desktop with WSL 2, visit: https://docs.docker.com/go/wsl2/ The command 'docker' could not be found in this WSL 2 distro. We recommend to activate the WSL integration in Docker Desktop settings. For details about using Docker Desktop with WSL 2, visit: https://docs.docker.com/go/wsl2/ =====New UAC===== cp: cannot stat 'UAC_code/laplace_files/carpf_laplace_single_LR_P.par': No such file or directory cp: cannot stat 'UAC_code/laplace_files/carpf_laplace_single_UD_P.par': No such file or directory cp: cannot stat 'UAC_code/laplace_files/carpf_laplace_single_LR_A.par': No such file or directory cp: cannot stat 'UAC_code/laplace_files/carpf_laplace_single_UD_A.par': No such file or directory python: can't open file 'UAC_code/scripts/2a_la.py': [Errno 2] No such file or directory The command 'docker' could not be found in this WSL 2 distro. We recommend to activate the WSL integration in Docker Desktop settings. For details about using Docker Desktop with WSL 2, visit: https://docs.docker.com/go/wsl2/ The command 'docker' could not be found in this WSL 2 distro. We recommend to activate the WSL integration in Docker Desktop settings. For details about using Docker Desktop with WSL 2, visit: https://docs.docker.com/go/wsl2/ The command 'docker' could not be found in this WSL 2 distro. We recommend to activate the WSL integration in Docker Desktop settings. For details about using Docker Desktop with WSL 2, visit: https://docs.docker.com/go/wsl2/ The command 'docker' could not be found in this WSL 2 distro. We recommend to activate the WSL integration in Docker Desktop settings. For details about using Docker Desktop with WSL 2, visit: https://docs.docker.com/go/wsl2/ =====New UAC part 2===== python: can't open file 'UAC_code/scripts/2b_la.py': [Errno 2] No such file or directory =====Add fibres2 ===== python: can't open file 'UAC_code/scripts/fibre_mapping.py': [Errno 2] No such file or directory =====Add LAT field ()===== python: can't open file 'UAC_code/scripts/lat_field.py': [Errno 2] No such file or directory =====Make PV stimulus files .vtx ()===== ```

    Import from clipboard

    Paste your markdown or webpage here...

    Advanced permission required

    Your current role can only read. Ask the system administrator to acquire write and comment permission.

    This team is disabled

    Sorry, this team is disabled. You can't edit this note.

    This note is locked

    Sorry, only owner can edit this note.

    Reach the limit

    Sorry, you've reached the max length this note can be.
    Please reduce the content or divide it to more notes, thank you!

    Import from Gist

    Import from Snippet

    or

    Export to Snippet

    Are you sure?

    Do you really want to delete this note?
    All users will lose their connection.

    Create a note from template

    Create a note from template

    Oops...
    This template has been removed or transferred.
    Upgrade
    All
    • All
    • Team
    No template.

    Create a template

    Upgrade

    Delete template

    Do you really want to delete this template?
    Turn this template into a regular note and keep its content, versions, and comments.

    This page need refresh

    You have an incompatible client version.
    Refresh to update.
    New version available!
    See releases notes here
    Refresh to enjoy new features.
    Your user state has changed.
    Refresh to load new user state.

    Sign in

    Forgot password

    or

    By clicking below, you agree to our terms of service.

    Sign in via Facebook Sign in via Twitter Sign in via GitHub Sign in via Dropbox Sign in with Wallet
    Wallet ( )
    Connect another wallet

    New to HackMD? Sign up

    Help

    • English
    • 中文
    • Français
    • Deutsch
    • 日本語
    • Español
    • Català
    • Ελληνικά
    • Português
    • italiano
    • Türkçe
    • Русский
    • Nederlands
    • hrvatski jezik
    • język polski
    • Українська
    • हिन्दी
    • svenska
    • Esperanto
    • dansk

    Documents

    Help & Tutorial

    How to use Book mode

    Slide Example

    API Docs

    Edit in VSCode

    Install browser extension

    Contacts

    Feedback

    Discord

    Send us email

    Resources

    Releases

    Pricing

    Blog

    Policy

    Terms

    Privacy

    Cheatsheet

    Syntax Example Reference
    # Header Header 基本排版
    - Unordered List
    • Unordered List
    1. Ordered List
    1. Ordered List
    - [ ] Todo List
    • Todo List
    > Blockquote
    Blockquote
    **Bold font** Bold font
    *Italics font* Italics font
    ~~Strikethrough~~ Strikethrough
    19^th^ 19th
    H~2~O H2O
    ++Inserted text++ Inserted text
    ==Marked text== Marked text
    [link text](https:// "title") Link
    ![image alt](https:// "title") Image
    `Code` Code 在筆記中貼入程式碼
    ```javascript
    var i = 0;
    ```
    var i = 0;
    :smile: :smile: Emoji list
    {%youtube youtube_id %} Externals
    $L^aT_eX$ LaTeX
    :::info
    This is a alert area.
    :::

    This is a alert area.

    Versions and GitHub Sync
    Get Full History Access

    • Edit version name
    • Delete

    revision author avatar     named on  

    More Less

    Note content is identical to the latest version.
    Compare
      Choose a version
      No search result
      Version not found
    Sign in to link this note to GitHub
    Learn more
    This note is not linked with GitHub
     

    Feedback

    Submission failed, please try again

    Thanks for your support.

    On a scale of 0-10, how likely is it that you would recommend HackMD to your friends, family or business associates?

    Please give us some advice and help us improve HackMD.

     

    Thanks for your feedback

    Remove version name

    Do you want to remove this version name and description?

    Transfer ownership

    Transfer to
      Warning: is a public team. If you transfer note to this team, everyone on the web can find and read this note.

        Link with GitHub

        Please authorize HackMD on GitHub
        • Please sign in to GitHub and install the HackMD app on your GitHub repo.
        • HackMD links with GitHub through a GitHub App. You can choose which repo to install our App.
        Learn more  Sign in to GitHub

        Push the note to GitHub Push to GitHub Pull a file from GitHub

          Authorize again
         

        Choose which file to push to

        Select repo
        Refresh Authorize more repos
        Select branch
        Select file
        Select branch
        Choose version(s) to push
        • Save a new version and push
        • Choose from existing versions
        Include title and tags
        Available push count

        Pull from GitHub

         
        File from GitHub
        File from HackMD

        GitHub Link Settings

        File linked

        Linked by
        File path
        Last synced branch
        Available push count

        Danger Zone

        Unlink
        You will no longer receive notification when GitHub file changes after unlink.

        Syncing

        Push failed

        Push successfully