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.

Example notebooks will not work with the next release

See original GitHub issue
  • TIA Toolbox version: 1.1.x?
  • Python version: Python 3.7
  • Operating System: Linux

In the new version of TIAToolbox we have dropped the support for python < 3.8, while Colab uses python=3.7. I think this means that non of example notebooks will work in Colab after merging develop in master simply because users cannot install the toolbox via pip install tiatoolbox. We didn’t see this coming when we dropped the support of python 3.7.

One (really) nasty solution is to add a cell on the top of the notebook in which we install a Python 3.8 using Conda, like this

!wget -O mini.sh https://repo.anaconda.com/miniconda/Miniconda3-py38_4.8.2-Linux-x86_64.sh
!chmod +x mini.sh
!bash ./mini.sh -b -f -p /usr/local
!conda install -q -y jupyter
!conda install -q -y google-colab -c conda-forge
!python -m ipykernel install --name "py38" --user

however, this is not idea at all because it’s not guaranteed to work all the time and there might be tons of problems with dependencies. Alternatively, we can consider having support for Python 3.7 back, if possible.

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
shaneahmedcommented, Jul 5, 2022

@mostafajahanifar I am adding support for Python 3.7 back for now. Once Colab starts supporting Python 3.8 we will remove Python 3.7 support.

0reactions
jwnimmer-tricommented, Oct 1, 2022

In case it helps, I can also highly recommend https://deepnote.com/ for hosting example notebooks. When Google stopped maintaining Colab, I switched my project’s example notebooks to Deepnote and I couldn’t be happier.

Read more comments on GitHub >

github_iconTop Results From Across the Web

What to do when things go wrong - The Jupyter Notebook
First, have a look at the common problems listed below. ... Check that you have the latest version of any packages that look...
Read more >
Solve problems with Jupyter Notebooks - coursera.support
Your Notebook lesson item will now launch to the fresh notebook. Find missing work. If your Jupyter Notebook files have disappeared, it means ......
Read more >
Example Notebooks - Amazon SageMaker
Your notebook instance contains example notebooks provided by Amazon SageMaker. The example notebooks contain code that shows how to apply machine learning ...
Read more >
Fix issues when you can't sync OneNote - Microsoft Support
Notes won't sync · On the menu bar in OneNote for Mac, click Notebooks > Notebooks > Close This Notebook. · Switch back...
Read more >
Work with notebooks and other files in Databricks Repos
To create a new notebook or folder in a repo, click the down arrow next to the repo name, and select Create >...
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