Comments (3)
Hi Thomas,
Thanks for your pointers. In the trame documentation that you pointed out, the bottom section is what we recommend nowadays. We are still working on that part (hence the missing explanation that I'm giving you here). On top of that, we are working toward a trame-jupyter-extension to prevent any side connection and use the internal jupyter-comm infrastructure.
But with that approach, we made it flexible so people can configure how that iframe gets generated, and we already have an implementation for jupyter hub.
If I skip most of the bottom section, you will have to do the following in your cell to leverage it.
cone = Cone()
await cone.ui.ready
cone.ui.iframe_builder = "jupyter-hub" # <= set the strategy for building the iframe
cone.ui
or you can
import os
os.environ["TRAME_IFRAME_BUILDER"] = "jupyter-hub"
You may need to do pip install -U trame-client
to grab the latest though.
You can see the implementation of those builders, and if you want to expand or add a new one, PRs are indeed welcome.
Good luck with your exploration of trame within Jupyter.
from trame.
Great! It just works, thanks!
from trame.
A slightly different approach: pyvista trame's backend is using a server_proxy_prefix
str argument to generate the url:
from trame.
Related Issues (20)
- Patch VTK's `serializeInstance` to change `print` statements to warnings HOT 2
- Template slot extension issue HOT 3
- Visible status of widget GitTree cannot be changed
- GitTree Bug when change the active state HOT 2
- Failure when picking cells
- App freezes on disconnect when template_name is used HOT 1
- VtkRemoteLocalView local view not syncing HOT 2
- Failing event binding with vtkRemoteView HOT 6
- Add `__version__` attribute to Trame packages HOT 22
- Add `git`, `git-lfs`, and `openssh-client` to the `trame` docker container HOT 9
- Trame unexpectedly affects the render window and vtkWindowToImageFilter HOT 1
- `trame-client` not generating `index.html` HOT 2
- Grid / Bounds plotting incorrectly for parallel projection HOT 1
- `${HOST}:${PORT}/favicon.ico` should return `server.stat.trame__favicon` HOT 6
- Plotly figure resets unexpectedly HOT 2
- Altered rendering behavior in client mode HOT 4
- render unstructuredGrid data HOT 2
- How can trame be deployed in an environment with no desktop or graphical interface, such as k8s HOT 1
- Setting actor `UserMatrix` transformation renders nothing in local view HOT 7
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from trame.