Git Product home page Git Product logo

Comments (17)

BrandonEscamilla avatar BrandonEscamilla commented on May 29, 2024 1

By the way, it seems that the latest release of the npm website is displaying strange code on its main page. I apologize for mentioning it here, as it may not be significant enough to warrant a new issue report.

CleanShot 2023-08-31 at 16 17 26

from jupyter-ui.

BrandonEscamilla avatar BrandonEscamilla commented on May 29, 2024 1

Hey @echarles, thank you so much for your help! I'm happy to report that everything is working perfectly now with Yarn. It's interesting to know that npm was causing issues with the library. I really appreciate all your effort and responsiveness. The remaining CSS issue with the matplotlib widget is minor, so not a big problem. I will close this issue now that everything is solved. Thanks once again for your assistance!

from jupyter-ui.

echarles avatar echarles commented on May 29, 2024

Thx a lot for reporting @BrandonEscamilla I will look at this tomorrow.

Quick question: with 0.6.4, are the redux actions broken on path change?

from jupyter-ui.

BrandonEscamilla avatar BrandonEscamilla commented on May 29, 2024

Hi @echarles, I tested version 0.6.4 and encountered the same issue.

from jupyter-ui.

echarles avatar echarles commented on May 29, 2024

I have released 0.7.0 which fixed this. Can you confirm it work for you?

from jupyter-ui.

BrandonEscamilla avatar BrandonEscamilla commented on May 29, 2024

Hey @echarles, thank you for taking the time to fix this one, I am just testing and it seems the redux actions works as expected now, with an exception, it seems the cells can't run code now. I attach a gif of the behavior.

P.S. Happening before and after path change.

behavior 3

from jupyter-ui.

echarles avatar echarles commented on May 29, 2024

Run is working for me. Can you double-check/confirm it is an issue on your env? Any error message in the devtools console?

Untitled6

I will push a new release based on your feedback (on this on other issues) so those debugging notes disapear from npm :) Thx again for reporting 👍

from jupyter-ui.

BrandonEscamilla avatar BrandonEscamilla commented on May 29, 2024

Oh interesting, it's weird, I can only see one error for both Notebook and Jupyter (attached below), but apart from that I can't see anything else. Also, I already re-install the package, and tried to make it work in different ways unsuccessfully. Any idea? I am testing in an scratch project using next.js 13, so there is nothing else only the jupyter component.


app-index.js:31 Warning: Notebook: Support for defaultProps will be removed from function components in a future major release. Use JavaScript default parameters instead.

from jupyter-ui.

echarles avatar echarles commented on May 29, 2024

Will try in next.js, what I was doing was outside of next. Maybe useful that you confirm if it is working or not without next.js.

from jupyter-ui.

echarles avatar echarles commented on May 29, 2024

Just tried with next and it is working fine on my env. I will create a separated next.js application tomorrow and will try to deploy with vercel to see what it gives. I will also push my code tomorrow.

from jupyter-ui.

BrandonEscamilla avatar BrandonEscamilla commented on May 29, 2024

Hi @echarles, I've thoroughly tested the new version of Jupyter-React and can confirm that the issue is not with my environment. I've tried various troubleshooting steps such as reinstalling, adjusting my Node versions, and creating new projects with Create React App (CRA) and Next.js, but I'm still unable to run the cells. My guess is that there might be a relative path that works in your development environment but doesn't work in other environments. Please let me know your thoughts or if there's anything else I can try. Additionally, I've also tried reverting to version 0.6.5 in all the examples I ran, and it seems to work as expected. Thanks in advance!

from jupyter-ui.

echarles avatar echarles commented on May 29, 2024

Yes, I have a fix for that on next.js. Pushing it now.

from jupyter-ui.

echarles avatar echarles commented on May 29, 2024

I have a separated project on https://github.com/echarles/jupyter-nextjs-example. I am documenting how to configure next.js and also deploying it on vercel. Would be great that you clone and confirm it is working (you have to use yarn)

from jupyter-ui.

BrandonEscamilla avatar BrandonEscamilla commented on May 29, 2024

Thanks @echarles, I am testing the repo and it's not working i am getting the following error:
CleanShot 2023-09-01 at 12 05 22

I guess it's server related?

from jupyter-ui.

echarles avatar echarles commented on May 29, 2024

I have hit that error a few time depending on how I was buildling (yarn, npm...) and also double rendering, therefor I had to disable react strict mode.

const nextConfig = {
   reactStrictMode: false,
}

Since then I was not hitting that error anymore...

from jupyter-ui.

BrandonEscamilla avatar BrandonEscamilla commented on May 29, 2024

Ok, I tried your prod version of Next.js at https://jupyter-nextjs-example.vercel.app/ and it seems it's not working. For me, it's not displaying the notebook and showing this error:

CleanShot 2023-09-01 at 12 40 29

I am also testing the Next.js repository you shared, and it's not working locally with Yarn v3 and reactStrictMode set to false. I'm getting the following error when using the datalayer Jupyter server:

CleanShot 2023-09-01 at 12 47 31

If I use my own Jupyter server, I'm encountering a different error:

CleanShot 2023-09-01 at 12 48 57

Is there something I am missing, should I try something else? Thanks in advance!

from jupyter-ui.

echarles avatar echarles commented on May 29, 2024

@BrandonEscamilla Thx you so much for your willingness to help and test.

🎉 🎉

https://jupyter-nextjs-example.vercel.app is now working. You will need jupyter-react 0.7.4 and check the requirements on https://jupyter-ui.datalayer.tech/docs/examples/next-js

There is still a small CSS glitch for the jupyter-matpltlib widget (on my env), but otherwise the kernel is kept on reload and the path change is working for me.

Curious to know if it works for you

from jupyter-ui.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.