Comments (7)
Yeah, I think having a cell that has this right after the jbrowse install is a reasonable thing to do:
#in Google Colab, it seems that we can't use Flask 2.1.3, so we'll force it to use 1.1.4
#!pip install Flask==1.1.4
from jbrowse-jupyter.
Can you point me to where you are seeing this? I just checked on main, and it has pip install jbrowse-jupyter
no the github link
from jbrowse-jupyter.
sorry I didn't describe it further...I visited
https://colab.research.google.com/github/GMOD/jbrowse-jupyter/blob/main/browser.ipynb
it contains
!pip install jbrowse-jupyter
but then, performing "Run all" makes an error
AttributeError Traceback (most recent call last)
[/usr/local/lib/python3.7/dist-packages/pkg_resources/__init__.py](https://localhost:8080/#) in _dep_map(self)
3015 try:
-> 3016 return self.__dep_map
3017 except AttributeError:
19 frames
AttributeError: _DistInfoDistribution__dep_map
During handling of the above exception, another exception occurred:
AttributeError Traceback (most recent call last)
AttributeError: _pkg_info
During handling of the above exception, another exception occurred:
FileNotFoundError Traceback (most recent call last)
[/usr/local/lib/python3.7/dist-packages/pkg_resources/__init__.py](https://localhost:8080/#) in _get(self, path)
1609
1610 def _get(self, path):
-> 1611 with open(path, 'rb') as stream:
1612 return stream.read()
1613
FileNotFoundError: [Errno 2] No such file or directory: '/usr/local/lib/python3.7/dist-packages/Flask-1.1.4.dist-info/METADATA'
then I saw in the readme that it says
You can open this browser.ipynb in colab [here](https://colab.research.google.com/github/GMOD/jbrowse-jupyter/blob/main/browser.ipynb) Note: to install the package in colab you can use this command. In a new cell above the import statement
!pip install git+https://github.com/GMOD/jbrowse-jupyter.git@main
I interpreted this to mean "replace !pip install jbrowse-jupyter with !pip install git+https://github.com/GMOD/jbrowse-jupyter.git@main" and so I did that, and then redid "Run all", and it displayed the embedded lgv's successfully with no errors after that. I then thought that this implies that if the package got republished, then it would not need to install from github in the colab?
from jbrowse-jupyter.
@cmdcolin I see how that can be confusing. I think the comment on the readme is stale, I will remove that line. I had the !pip install git+https://github.com/GMOD/jbrowse-jupyter.git@main
before Jbrowse-jupyter was released, so this was just so that we could start testing the package prior to its formal release in pypi.
The issue you see there when running run all in colab, is that sometimes pip may be funky. This issue is related gradio-app/gradio#870. It is an issue that @scottcain has also seen. I can resolve it by pip installing flask right after to avoid any issues.
from jbrowse-jupyter.
I see, I am not exactly sure what the best course of action is! If adding an extra pip helps avoid the error, might be worth it, until error is otherwise resolved upstream somehow
from jbrowse-jupyter.
Okay, I think I will add that. I think avoiding errors is best if others will be running this notebook.
from jbrowse-jupyter.
Added here #62
from jbrowse-jupyter.
Related Issues (20)
- Binder support HOT 5
- Does this library need to be re-released to get new versions of @jbrowse/react-linear-genome-view HOT 4
- Add Dash JBrowse Circular Genome View
- 504 errors with binder and jupyter lab HOT 1
- werkzeug > 2.0.3 throws errors HOT 2
- JBrowseConfig class system and additional utility functions HOT 1
- Local file support HOT 2
- Integration with other bioinformatics libraries HOT 1
- Move pytest to tests_require in setup.py HOT 2
- Support callback functions HOT 1
- CHM13 genome configuration HOT 4
- Firefox/Mozilla bug with Google Colab HOT 11
- Convert or add anywidget implementation(?) HOT 7
- Colab link failing with latest release of dash_jbrowse(?) HOT 3
- make the uri scheme a setting
- More example usages
- Add ability to use JBrowse 2 config file
- Add ability to use @jbrowse/react-app
- Programmatic control of the instance after launch HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from jbrowse-jupyter.