question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Kedro viz with proxy does not show additional information

See original GitHub issue

Description

Additional information is available only for the first couple of seconds when you are open it, and then it just disappears. Look at the picture below. I hided some information. What I am saying about is inside red rectangle. Screenshot 2022-06-03 at 16 39 01

Context

We have a remote cluster setup for working where we have jupyter hub installed and all interactions with this remote server are through this hub. So, to get kedro viz there, we had to make it work via this hub by using proxies. I am not sure about all technical details, but I can share with you my conversation with our support guy who was investigating this problem a bit:

Long story short – this is an issue with how kedro-viz frontend treats working with the proxy server Static javascript that is already built-in in the package is not configured to dynamically modify its paths when served through the proxy server (which is the case for us). On the start of kedro viz, we load an html which has some relative paths, causing all the content to prepend /user/<username> base path. But all the subsequent requests are done from the loaded js files that don’t have /user/<username> base path prepended as they should. After lots of digging I found out this: https://create-react-app.dev/docs/proxying-api-requests-in-development/#configuring-the-proxy-manually. Which I confirmed to myself by finding this: https://github.com/mlflow/mlflow/blob/master/mlflow/server/js/src/setupProxy.js. As you can see, this file being present in their repo is most likely (99%) the reason why mlflow does not have such an issue.

I can confirm that we start MLFlow the same way as Kedro Viz, and it does not have such problems. But still, I cannot be sure that the reason is really in these configurations.

Steps to Reproduce

I am afraid I cannot properly describe all steps to reproduce this issue, as I have lack of technical knoledges of how jupyterhub works with proxies. Please let me know if you have any questions that I can address to our infrastructure team to help you understand the source of the problem.

Expected Result

Information should be shown

Actual Result

Information does not be shown

Your Environment

  • Web browser system and version: does not matter
  • Operating system and version: CentOS Linux 7
  • Output of jupyter --version command:
  IPython          : 7.29.0
  ipykernel        : 6.5.0
  ipywidgets       : 7.6.5
  jupyter_client   : 7.0.6
  jupyter_core     : 4.9.1
  jupyter_server   : 1.11.2
  jupyterlab       : 3.2.2
  nbclient         : 0.5.5
  nbconvert        : 6.2.0
  nbformat         : 5.1.3
  notebook         : 6.4.5
  qtconsole        : not installed
  traitlets        : 5.1.1

Checklist

  • Include labels so that we can categorise your issue

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:9 (9 by maintainers)

github_iconTop GitHub Comments

2reactions
IanVlasovcommented, Jul 4, 2022

Hello @tynandebold @AntonyMilneQB ! Many thanks for such fast fix! I can confirm that it works, we see detailed information, and it does not disappear anymore!

2reactions
AntonyMilneQBcommented, Jul 1, 2022

@IanVlasov this should be fixed in Kedro-Viz 4.7.1. Please give it a go and let us know if it works for you!

I’m going to leave this issue open for testing purposes and also because I want to think about it a bit more in connection with #910. I think we might have a really nice new build-in workflow for this in the future. Thank you @IanVlasov for your very helpful issue!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Get started with Kedro-Viz - Read the Docs
It displays data and nodes, and the connections between them, to visualise the structure of the pipelines in a Kedro project. This section...
Read more >
kedro Changelog - pyup.io
Fix for running Kedro-Viz with a proxy server or different base paths. (941) ... Fix flowchart not showing on initial load for static...
Read more >
Building and Managing Data Science Pipelines with Kedro
The evaluation is done by tasking the model to run predictions on a dataset that it has not seen before. It serves as...
Read more >
Build an Anomaly Detection Pipeline with Isolation Forest and ...
Therefore it is no surprise that data preparation takes up the most time and ... kedro-env , we can use pip to install...
Read more >
Visualise your Kedro data pipelines.
If not specified, catalog config in `local` will be used --autoreload Autoreload viz server when a Python or YAML file change in the...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found