I'm currently working on the implementation of a code that makes possible to generate pdf on latex style from Jupyter Notebook.
The idea is simple:
I import and treat data on a notebook (need of the powerful sympy package from python) ;
I export the results to a csv file in a defined repertory ;
I run from the notebook a Rnw file using the previously created csv ;
I "knitr" the obtained Rnw with a predefined Tex .cls file (preamble import does not seems to work if I import the pdf directly from Jupyter notebook).
I end-up with a nice report created using the high flexibility of python plus the amazing rendering from Tex. And I have to say, it is working perfectly. But here is my problem:
I would like to use an interactive widget in my notebook to enter the data from a touch screen. So let's consider the following minimal example: I have this table made of Button from from ipywidgets:
This give on the same time this table:
I need to make a simple calculation out of that table, e.g. sum of values, here = 6.
Now I would need to be able to click on a red cell to make it green with a symbol 'o', something like that:
and the corresponding table:
The calculations done on that table would give a total of 4.
I'm not looking for a way to visualize the table made of 0/1, what I try to do is:
To be able to change the color and the text of a widget by clicking on it, while updating a variable that could be used later on ;
Finally, to click on a button that would run my Rnw/latex code. I have the code, it works with Ctrl-Enter, but I would appreciate to link a widget 'Compile !' to it.
Does anybody already faced this ? Or do somebody knows how to solve those problems ?
Hi,
I'm currently working on the implementation of a code that makes possible to generate pdf on latex style from Jupyter Notebook.
The idea is simple:
I "knitr" the obtained Rnw with a predefined Tex .cls file (preamble import does not seems to work if I import the pdf directly from Jupyter notebook).
I end-up with a nice report created using the high flexibility of python plus the amazing rendering from Tex. And I have to say, it is working perfectly. But here is my problem:
I would like to use an interactive widget in my notebook to enter the data from a touch screen. So let's consider the following minimal example: I have this table made of Button from from ipywidgets:
This give on the same time this table:
I need to make a simple calculation out of that table, e.g. sum of values, here = 6.
Now I would need to be able to click on a red cell to make it green with a symbol 'o', something like that:
and the corresponding table:
The calculations done on that table would give a total of 4.
I'm not looking for a way to visualize the table made of 0/1, what I try to do is:
Does anybody already faced this ? Or do somebody knows how to solve those problems ?
Thanks in advance.
Jb