pip list --format=freeze > requirements.txt
Source: this SO answer
pip list --format=freeze > requirements.txt
Source: this SO answer
| from IPython.display import HTML | |
| import plotly.express as px | |
| # Create Plotly fig objects in plotly as usual, and then use HTML(fig.to_html()) to render them in Jupyterlab on SageMaker. | |
| # Or just write to html file: fig.write_html("fig.html") and view it. |
git config filter.strip-notebook-output.clean 'jupyter nbconvert --ClearOutputPreprocessor.enabled=True --to=notebook --stdin --stdout --log-level=ERROR'
Create a .gitattributes file inside the directory with the notebooks
Add the following to that file:
This is helpful when running jupyter notebook on remote server (AWS) and tunneling into it, because with nohup the notebook process continues to run on the server even if you get disconnected from it (any running notebook code continues to run on the server without interruption, and just needs to be re-tunneled into).
In the remote server terminal, run:
nohup jupyter notebook &