I think they will play nicely depending on exactly what you are doing.
Could you give a specific example of what you had in mind or what you have tried?
If you are embedding a Streamlit app inside an Anvil app, you could try an iframe. Otherwise perhaps you could research the following documentation if you have not already: Anvil uplink, Jupyter + Anvil tutorial, HTTP requests, HTTP endpoints.