-
Notifications
You must be signed in to change notification settings - Fork 29
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add DVCLive reference to Experiments "Setup Complete" (#3948)
- Loading branch information
Showing
3 changed files
with
44 additions
and
30 deletions.
There are no files selected for viewing
36 changes: 36 additions & 0 deletions
36
webview/src/setup/components/experiments/DvcLiveExamples.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
/* eslint-disable @typescript-eslint/no-unsafe-call */ | ||
import React from 'react' | ||
import { CodeSlider } from '../../../shared/components/codeSlider/CodeSlider' | ||
import pyTorch from '../../snippets/pyTorch.py' | ||
import huggingFace from '../../snippets/huggingFace.py' | ||
import keras from '../../snippets/keras.py' | ||
import pythonApi from '../../snippets/pythonApi.py' | ||
|
||
export const DvcLiveExamples: React.FC = () => { | ||
return ( | ||
<CodeSlider | ||
codeBlocks={[ | ||
{ | ||
children: pyTorch.toString(), | ||
language: 'python', | ||
title: 'PyTorch Lightning' | ||
}, | ||
{ | ||
children: huggingFace.toString(), | ||
language: 'python', | ||
title: 'Hugging Face' | ||
}, | ||
{ | ||
children: keras.toString(), | ||
language: 'python', | ||
title: 'Keras' | ||
}, | ||
{ | ||
children: pythonApi.toString(), | ||
language: 'python', | ||
title: 'General Python API' | ||
} | ||
]} | ||
/> | ||
) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters