-
-
Notifications
You must be signed in to change notification settings - Fork 47
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support for markdown cells in the Cell component #247
Comments
@MarcosVn You will need to add a prop jupyter-ui/packages/react/src/components/cell/Cell.tsx Lines 16 to 25 in 3197d24
... and pass that prop to the CellAdapter which will import a MarkdownCell and RawCell here https://github.com/datalayer/jupyter-ui/blob/3197d240947f5e1ce80abe10801c3679e9cd5acc/packages/react/src/components/cell/CellAdapter.ts#L16C25-L16C33 ... and instantiate those MarkdownCell and RawCell based on that prop. |
Hello @echarles, thank you very much for your quick response. I opened a very partial PR with the mentioned evolutions, but it seems there are some issues beyond that I would like to request an opinion/help:
|
Hi @MarcosVn , it seems to me we are working on somewhat similar tasks) Can you please share how you work with multiple cells? I've tried to build very basic example, but struggling to make it work properly with more than one cell For example when I add more than one cell I have following issues with an example
My example is
|
A prerequisite to support multiple Cells on a same page is to upgrade the zustand store to support many cells, like the output store does. |
Hello @echarles, Regarding the markdown support, could you please review my last comment when possible? I would be happy to help with this evolution in the library, and it will also be useful for my use case. |
@MarcosVn Thanks a lot for this contribution and sorry for the delay... I have commented here #248 (comment) |
* feat: partially adding support to markdown cells (#247) * feat: adding more functionalities to markdown Cell (#247) --------- Co-authored-by: Marcos Alves <[email protected]>
I am working on a web application, and the
<Cell>
component meets exactly what I need; however, in version0.10.0
it only allows code cells. When I use a<Notebook>
, I can manipulate and add markdown cells programmatically.Would it be possible to add the same support to
<Cell>
? This could be through a newtype
prop or even an action provided by whatever you consider best. If feasible, could this be included in the evolution pipeline? I can contribute with a PR to have this ASAP.The text was updated successfully, but these errors were encountered: