Hi Bill,
thank you for your feedback.
On 02.05.22 18:55, Bill Page wrote:
Ralf,
Thanks for this. I tried your installation procedure on my "Linux Mint
19.3 Tricia base: Ubuntu 18.04 bionic" system and everything seemed
to work fine except the installation of JupyText.
After performing the steps in
* (optional) Install JupyText
when I run
jfricas $FDIR/foo.input
or even just
jfricas
I get the error message:
[C 12:38:09.008 NotebookApp] Bad config encountered during initialization:
[C 12:38:09.008 NotebookApp] The 'contents_manager_class' trait of
<notebook.notebookapp.NotebookApp object at 0x7fa3b6333860> instance
must be a type, but 'jupytext.TextFileContentsManager' could not be
imported
When I checked the config file:
xed $HOME/.jupyter/jupyter_notebook_config.py
I noticed that the installation command
--
3. Make Jupytext available.
sed -i 's|^# *c.NotebookApp.contents_manager_class
=.*|c.NotebookApp.contents_manager_class =
"jupytext.TextFileContentsManager"|;s|^#
*c.NotebookApp.use_redirect_file = .*|c.NotebookApp.use_redirect_file
= False|' $HOME/.jupyter/jupyter_notebook_config.py
--
failed to add the line
c.NotebookApp.use_redirect_file = False
presumably because the file did not previously contain any line like
# *c.NotebookApp.use_redirect_file = .*
Oh... in your case jupyter_notebook_config.py was probably existing.
However, this redirect line was for me only necessary in Ubuntu 22.04.
There when starting "jupyter notebook", firefox would open with a
file://... URL and it would not redirect to the localhost URL where
Jupyter is running.
The actual problem is the jupytext line. What happened to
c.NotebookApp.contents_manager_class in your case? Obviously it points
to jupytext. But then I can only guess that jupytext was not installed
in the virtualenv ($HOME/fricas/venv).
Ralf
--
You received this message because you are subscribed to the Google Groups "FriCAS -
computer algebra system" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/fricas-devel/a49f5774-072e-0392-9184-d9a2af19ba00%40hemmecke.org.