I found some documentation for ipynb https://ipynb.readthedocs.io/en/latest/

I am able to import def from notebooks in the same directory how ever I can
not import notebooks that are in other directories. As an example

1) my server was started on my local machine at ~/workSpace/bioInformatics

2) My first notebook is running at
~/workSpace/bioInformatics/ucsd/c2_GenomeSequencing/src

3) the name of my first notebook is
week1_Introduction_to_Genome_Sequencing.ipynb

3) I want to use functions define in
../../c1_FindingHiddenMessagesinDNA/src/week4.ipynb


$ ls -l 
~/workSpace/bioInformatics/ucsd/c2_GenomeSequencing/src/../../c1_FindingHidd
enMessagesinDNA/src/week4.ipynb

-rw-r--r--  1 ad  staff    33K Apr 23 11:50
/Users/andrewdavidson/workSpace/bioInformatics/ucsd/c2_GenomeSequencing/src/
../../c1_FindingHiddenMessagesinDNA/src/week4.ipynb

I have done a lot of hacking and keep getting Œinvalid syntax¹







According to https://ipynb.readthedocs.io/en/latest/


"Relative imports
If you want to import notebooks from other notebooks relatively, you can
easily do that with the following:
` import ipynb.fs from .full.notebook1 import foo from .defs.notebook2
import bar `
This will do the imports from other notebooks relative to the path of the
notebook in which the importing is happening. The import ipynb.fs is
boilerplate that is required for this feature to work properly.²


Any suggestions would be appreciated.
Andy


-- 
You received this message because you are subscribed to the Google Groups 
"Project Jupyter" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jupyter/D52E4944.57743%25Andy%40SantaCruzIntegration.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to