Streamlit component for viewing diffs between blobs of text. This component is a wrapper around the CodeMirror component, exposing the diff view capability.
- Backend
- Install Poetry
- Run
poetry intall
- Drop into a virtualenv shell
poetry shell
- Edit
st_codemirror_diff/__init__.py
change_RELEASE
toFalse
- Run
streamlit run st_codemirror_diff/__init__.py
- Frontend
cd st_codemirror_diff/frontend
npm install
npm start
- Now the frontend and backend should be up, the page can be accessed at
http://localhost:8501
- Frontend
- Run
npm run build
inst_codemirror_diff/frontend
- Run
- Backend
- Edit
st_codemirror_diff/__init__.py
change_RELEASE
toTrue
- Drop into python virtualenv by running
poetry shell
- Build python dist wheels
python setup.py sdist bdist_wheel
- This will create the python
st_codemirror_diff-<version>-py3-none-any.whl
in thedist
dir - Now install this via
python -m pip install <path-to-st_codemirror_diff.whl>
- Edit
- Red and Green 'squiggles' in the CodeMirror windows. This is due to some check that is being performed by CodeMirror.